FS#51191 - [perl] add perl script directories for fish shell

Attached to Project: Arch Linux
Opened by Florian Jacob (fjacob) - Sunday, 02 October 2016, 09:09 GMT
Last edited by Florian Pritz (bluewind) - Tuesday, 25 October 2016, 14:08 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Florian Pritz (bluewind)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Similar to https://bugs.archlinux.org/task/22441, as fish is not sh-compatible, it needs its own version of the perlbin script to add the directories to the path.

With the attached script placed at /usr/share/fish/vendor_conf.d/perlbin.fish, fish shell users will be able to execute vendor perl scripts without PATH modification. :)
As it has to be placed in /usr instead of /etc/profile.d and is not meant to be user-editable, I left out the line to add a custom $PERLLIB path.

As a side note, the wiki link changed, it's now …#Binaries_and_scripts instead of …#Binaries_and_Scripts as somebody changed the heading.

Thanks!
This task depends upon

Closed by  Florian Pritz (bluewind)
Tuesday, 25 October 2016, 14:08 GMT
Reason for closing:  Implemented
Additional comments about closing:  perl 5.24.0-3
Comment by Florian Jacob (fjacob) - Sunday, 02 October 2016, 10:34 GMT
Found a bug, the paths were appended over and over again for each nested shell.
The /usr/share/fish/vendor_conf.d/ scripts are executed for each shell and not only for login shells, so I have to check the shell status. See fixed version in new attachment of this comment.

Loading...