Arch Linux

Please read this before reporting a bug:

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#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
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Florian Pritz (bluewind)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


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?
if test -d $perldir; and not contains $perldir $PATH
set PATH $PATH $perldir

setenv PATH ${PATH}:/usr/bin/site_perl

Additional info:
* package version(s): current, 5.36.0-3
* see:
* The .csh added since:
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:14 GMT
Reason for closing:  Moved
Additional comments about closing: ackaging/packages/perl/issues/1