D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Shebang puzzle

 

On 26 Apr, 2012, at 1:59 pm, Simon Waters wrote:

On 26/04/12 13:32, Philip Hudson wrote:
#!/usr/bin/env tcsh -f

A quick Google and:

http://en.wikipedia.org/wiki/Shebang_%28Unix%29#Portability

Indeed. FTFA:

Another portability problem is the interpretation of the command arguments. Some systems, including Linux, do not split up the arguments[15]; for example, when running the script with the first line like,

#!/usr/bin/env python -c

That is, python -c will be passed as one argument to /usr/bin/env, rather than two arguments. Cygwin also behaves this way.



--
Phil Hudson                  http://hudson-it.no-ip.biz
@UWascalWabbit                 PGP/GnuPG ID: 0x887DCA63


--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq