nrfutil toolchain-manager launch won't work with zsh

As title says, I have a clean install of Xubuntu 23.10, latest nrfutil and toolchain-manager package

My shell is zsh, however "nrfutil toolchain-manager launch --shell zsh" will not giving me a shell that with a working west

If I force it to use bash then everything is fine with following PATH

PATH=/home/localuser/ncs/toolchains/2be090971e/usr/bin:/home/localuser/ncs/toolchains/2be090971e/usr/bin:/home/localuser/ncs/toolchains/2be090971e/usr/local/bin:/home/localuser/ncs/toolchains/2be090971e/opt/bin:/home/localuser/ncs/toolchains/2be090971e/opt/nanopb/generator-bin:/home/localuser/ncs/toolchains/2be090971e/opt/zephyr-sdk/aarch64-zephyr-elf/bin:/home/localuser/ncs/toolchains/2be090971e/opt/zephyr-sdk/x86_64-zephyr-elf/bin:/home/localuser/ncs/toolchains/2be090971e/opt/zephyr-sdk/arm-zephyr-eabi/bin:/home/localuser/ncs/toolchains/2be090971e/opt/zephyr-sdk/riscv64-zephyr-elf/bin:/home/localuser/bin:/home/localuser/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/games:/usr/games:/snap/bin

While in zsh it's clearly missing lot's of things

PATH=/home/localuser/bin:/home/localuser/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/games:/usr/games:/snap/bin

Could someone from the team texplain how the shell was invoked? since the new version of nrfutil no longer opensource, I cannot figure it out

Parents
  • Hello,

    I have to check with the developers about zsh support on Linux.

    Best regards,

    Michal

  • Hello again,

    Could you provide the output of running printenv in your zsh terminal after launching it with nrfutil?

    Best regards,

    Michal

  • Thank you. I have forwarded the information, but the main developer is unfortunately out of office currently, so I'll get back to you when they'll be back.

    Best regards,

    Michal

  • Hello again, one more quick update:

    So according to nrfutil toolchain-manager launch --help

    Options:
          --shell
              Launch a sub-shell within the current terminal
              
              The shell spawned is determined by the `SHELL` environment variable. An attempt is made to spawn the shell without running any config files (e.g. ".bashrc"), as these files could (potentially) mess up the environment. Officially supported shells are: "bash", "pwsh" and "zsh". Other shells might still work, but these are spawned with no flags.

    Note: You can run any shell, with any number of flags, by
    passing the command directly (see [COMMAND]).
              
              This feature is not supported on Windows.

    According to this, you should set a SHELL environmental variable instead and then just run:

    nrfutil toolchain-manager launch --shell

    Best regards,

    Michal

  • well, my default shell is zsh, which you could find out in the printenv output, it says "SHELL=/bin/zsh"

    I tried with --shell only it did not work that's why I appended zsh after it

Reply
  • well, my default shell is zsh, which you could find out in the printenv output, it says "SHELL=/bin/zsh"

    I tried with --shell only it did not work that's why I appended zsh after it

Children
  • Have you tried to edit SHELL to just zsh?

    If that doesn't change anything then I think we unfortunately have to wait until the expert is back and can look deeper into this.