FS#78232 - [perl] Fish and csh scripts in /etc/profile.d don't enquote PATH
Attached to Project:
Arch Linux
Opened by Vadim (vadcx) - Monday, 17 April 2023, 12:39 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:14 GMT
Opened by Vadim (vadcx) - Monday, 17 April 2023, 12:39 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:14 GMT
|
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 |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:14 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/perl/issues/1
Saturday, 25 November 2023, 20:14 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/perl/issues/1