Public bug reported: WSL version: 2 Kernel version: Linux version 5.4.72-microsoft-standard-WSL2 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) Ubuntu version: 20.04.2 LTS
Steps to reproduce issue: - run chsh -s /bin/sh (/bin/sh points to dash on my system) - open new Windows Terminal tab and obtain -sh: 6: export: Files/PowerShell/7:/mnt/c/tools/ruby30/bin:/mnt/c/Python39/Scripts/:/mnt/c/Python39/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program: bad variable name error Steps to fix issue: - replace 6-th line in /etc/profile.d/apps-bin-path.sh with export PATH="$PATH:${snap_bin_path}" As I understood from @therealkenc response here https://github.com/microsoft/WSL/issues/6838#issuecomment-825161072 I have to fill this issue here. ** Affects: snapd (Ubuntu) Importance: Undecided Status: New ** Description changed: WSL version: 2 Kernel version: Linux version 5.4.72-microsoft-standard-WSL2 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) Ubuntu version: 20.04.2 LTS Steps to reproduce issue: - run chsh -s /bin/sh (/bin/sh points to dash on my system) - open new Windows Terminal tab and obtain -sh: 6: export: Files/PowerShell/7:/mnt/c/tools/ruby30/bin:/mnt/c/Python39/Scripts/:/mnt/c/Python39/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program: bad variable name error + Steps to fix issue: + - replace 6-th line in /etc/profile.d/apps-bin-path.sh with export PATH="$PATH:${snap_bin_path}" + As I understood from @therealkenc response here https://github.com/microsoft/WSL/issues/6838 I have to fill this issue here. ** Description changed: WSL version: 2 Kernel version: Linux version 5.4.72-microsoft-standard-WSL2 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) Ubuntu version: 20.04.2 LTS Steps to reproduce issue: - run chsh -s /bin/sh (/bin/sh points to dash on my system) - open new Windows Terminal tab and obtain -sh: 6: export: Files/PowerShell/7:/mnt/c/tools/ruby30/bin:/mnt/c/Python39/Scripts/:/mnt/c/Python39/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program: bad variable name error Steps to fix issue: - replace 6-th line in /etc/profile.d/apps-bin-path.sh with export PATH="$PATH:${snap_bin_path}" As I understood from @therealkenc response here - https://github.com/microsoft/WSL/issues/6838 I have to fill this issue - here. + https://github.com/microsoft/WSL/issues/6838#issuecomment-825161072 I + have to fill this issue here. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1925810 Title: dash shell is broken To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1925810/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs