Hash-bang line for scripts using a software collection

Andrew Ford A.Ford at ford-mason.co.uk
Thu Apr 25 11:43:50 UTC 2013


Is there an easy way to set up a script to invoke a software collection 
interpreter?

I had thought of something like:

     #!/usr/bin/scl enable myperl5xx perl

but that just displays the scl error/usage page.

I know that I could use

     #!/opt/myprovider/myperl5xx/root/usr/bin/perl

but that doesn't adjust $ENV{PATH}, $ENV{MANPATH}, etc as it doesn't 
execute the collection's enable script.

Andrew




More information about the softwarecollections mailing list