Fish and csh scripts in /etc/profile.d don't enquote PATH
Task Info (Flyspray) | |
---|---|
Opened By | Vadim (vadcx) |
Task ID | 78232 |
Type | Bug Report |
Project | Arch Linux |
Category | Packages: Core |
Version | None |
OS | All |
Opened | 2023-04-17 12:39:20 UTC |
Status | Assigned |
Assignee | Florian Pritz (bluewind) |
Details
Description: /etc/profile.d/perlbin.{fish,csh} scripts do not enquote $PATH when using it.
I don't know what order profile.d is loaded in, yet it should not break if the PATH contains whitespaces somehow. Otherwise the expanded variable will be split upon whitespace characters and truncate the paths. Definitely so with tcsh, I'm not sure if Fish does it's own thing once again. Better be on the safe side?
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html
perlbin.fish: if test -d $perldir; and not contains $perldir $PATH set PATH $PATH $perldir
perlbin.csh: setenv PATH ${PATH}:/usr/bin/site_perl
Additional info:
- package version(s): current, 5.36.0-3
- see: https://github.com/archlinux/svntogit-packages/tree/packages/perl/trunk
- The .csh added since: https://bugs.archlinux.org/task/22441