Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#63331 - [plan9port] plan9.sh should quote shell expansion
Attached to Project:
Community Packages
Opened by Neven Sajko (Neven) - Wednesday, 31 July 2019, 19:06 GMT
Last edited by Alexander F. Rødseth (xyproto) - Friday, 02 August 2019, 12:59 GMT
Opened by Neven Sajko (Neven) - Wednesday, 31 July 2019, 19:06 GMT
Last edited by Alexander F. Rødseth (xyproto) - Friday, 02 August 2019, 12:59 GMT
|
Detailsexport PATH=$PATH:$PLAN9/bin
should be changed to export PATH="$PATH:$PLAN9/bin" The PATH colon separated list can probably have names with spaces in them. |
This task depends upon
Closed by Alexander F. Rødseth (xyproto)
Friday, 02 August 2019, 12:59 GMT
Reason for closing: Fixed
Friday, 02 August 2019, 12:59 GMT
Reason for closing: Fixed
export PLAN9=/asdiu
export PATH='a b'
PATH=$PATH:$PLAN9/bin
export PATH
In bash, busybox ash, and ksh93, the following also works, but fails in dash:
export PLAN9=/asdiu
export PATH='a b'
export PATH=$PATH:$PLAN9/bin
This seems like it should be a bug in dash, export var=val should not behave differently from var=val; export var. But according to https://unix.stackexchange.com/questions/193095/where-is-export-var-value-not-available/193137#193137 it is a "known behavior", which sucks.
Since PATH is already an exported environment variable, you do not need to re-export it every time you modify its value. This is valid in all four shells I tested, and although I don't have the source at hand, I believe (and #bash on Freenode confirmed my belief) that this behavior *is* required by POSIX.