Bashism in snapd.sh (aka apps-in-path.sh) breaks dash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Undecided
|
Unassigned | ||
snapd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
WSL version: 2
Kernel version: Linux version 5.4.72-
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/PowerShel
Steps to fix issue:
- replace 6-th line in /etc/profile.
As I understood from @therealkenc response here https:/
description: | updated |
description: | updated |
summary: |
- dash shell is broken + Incorrect quote use in apps-bin-path.sh |
tags: | added: wsl |
summary: |
- Incorrect quote use in apps-bin-path.sh + Bashism in snapd.sh (aka apps-in-path.sh) breaks dash |
Changed in snapd: | |
milestone: | none → 2.51 |
status: | Fix Committed → Fix Released |
Changed in snapd (Ubuntu): | |
status: | Fix Committed → Fix Released |
The issue as pointed on the github report is that the line is currently
export PATH=$PATH: ${snap_ bin_path}
without quoting it seems to not deal correctly with space in directory names?