Esp-idf: export.sh fail on shell fish (IDFGH-2324)

Created on 8 Dec 2019  ·  3Comments  ·  Source: espressif/esp-idf

----------------------------- Delete below -----------------------------

If your issue is a general question, starts similar to "How do I..", or is related to 3rd party development kits/libs, please discuss this on our community forum at esp32.com instead.

INSTRUCTIONS

Before submitting a new issue, please follow the checklist and try to find the answer.

  • [x] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • [x] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • [x] I have searched the issue tracker for a similar issue and not found a similar issue.

If the issue cannot be solved after the steps before, please follow these instructions so we can get the needed information to help you in a quick and effective fashion.

  1. Fill in all the fields under Environment marked with [ ] by picking the correct option for you in each case and deleting the others.
  2. Describe your problem.
  3. Include debug logs on the monitor or the coredump.
  4. Provide more items under Other items if possible can help us better locate your problem.
  5. Use markup (buttons above) and the Preview tab to check what the issue will look like.
  6. Delete these instructions from the above to the below marker lines before submitting this issue.

----------------------------- Delete above -----------------------------

Environment

  • Development Kit: ESP32-DevKitC
  • Kit version (for WroverKit/PicoKit/DevKitC): v1
  • Module or chip used: ESP32-WROOM-32
  • IDF version (run git describe --tags to find it): cv4.1-dev-1086-g93a8603c5

  • Build System: CMake

  • Compiler version (run xtensa-esp32-elf-gcc --version to find it): v4.1-dev-1086-g93a8603c5
  • Operating System: Linux (Debian Buster)
  • Power Supply: USB

Problem Description

I'm using FISH SHELL

Following the steps from Get Started, on Step 4 - Setup environment variables, on Linux
The follow line, from step above:

. $HOME/esp/esp-idf/export.sh

Issues a error

. $HOME/esp/esp-idf/export_fish.sh                                       23:53
~/esp/esp-idf/export_fish.sh (linha 1): Unexpected ')' found, expecting '}'
# This script should be sourced, not executed.

function realpath_int() {
    wdir="$PWD"; [ "$PWD" = "/" ] && wdir=""
    arg=$1
    case "$arg" in
        "/"*) scriptdir="${arg}";;
^
do arquivo ~/esp/esp-idf/export_fish.sh
    chamado na linha 359 do arquivo “/usr/share/fish/config.fish”

na função “.”
    chamado na entrada padrão

Most helpful comment

I used bass so source export.sh.
Install bass using fisherman, then run
$ bass source export.sh

All 3 comments

Hi @kylefelipe, so far we haven't added support for fish shell to the install/export scripts. These scripts are tested with bash only at the moment. If you are familiar with this shell and if you can send a PR to make the script compatible with fish, we will merge it. Otherwise we will treat this issue as a feature request for fish support.

I used bass so source export.sh.
Install bass using fisherman, then run
$ bass source export.sh

How should I call bass if I installed with env IDF_TOOLS_PATH=/opt/espresiff ./install.sh?

UPDATE: I am upgrading from fish 3.0.2 to fish 3.1 which supports FOO=bar syntax for passing variables to individual commands. See https://github.com/fish-shell/fish-shell/pull/6287

Was this page helpful?
0 / 5 - 0 ratings