FS#19411 - [perl] perlbin.sh does not work with zsh

Attached to Project: Arch Linux
Opened by Jan Alexander Steffens (heftig) - Monday, 10 May 2010, 15:47 GMT
Last edited by Kevin Piche (kpiche) - Sunday, 16 May 2010, 03:08 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Kevin Piche (kpiche)
Francois Charette (Firmicus)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

Details

Description:
/etc/profile.d/perlbin.sh does not work with zsh, as ${scriptdirs} is not split into words for the for loop by default. As a result, the paths are not added to the PATH.

Also, $perlpaths will always start with a colon, so the additional colon in PATH= is unneccessary.

Also, scriptdirs, currdir and perlpaths should be unset to decrease environment pollution.

Additional info:
perl 5.12.0-1
zsh 4.3.10-3
This task depends upon

Closed by  Kevin Piche (kpiche)
Sunday, 16 May 2010, 03:08 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 5.12.0-2
Comment by Jan Alexander Steffens (heftig) - Wednesday, 12 May 2010, 03:13 GMT
Workaround Hackfix:
[ "$shell" = "zsh" ] && eval "scriptdirs=(${=scriptdirs})"

Loading...