Re: [OT?] Shebang question

2004-07-26 Thread Ken Williams
On Jul 26, 2004, at 12:26 AM, Rich Morin wrote: #!/usr/bin/env perl -wl Looking in the Camel, I'm not sure what the -l flag is supposed to be doing for you. You're not using it with -n or -p, so it isn't auto-chomping the input lines; you didn't give it an argument, so it isn't changing the outpu

Re: [OT?] Shebang question

2004-07-25 Thread Rich Morin
#!/usr/bin/env perl -wl Looking in the Camel, I'm not sure what the -l flag is supposed to be doing for you. You're not using it with -n or -p, so it isn't auto-chomping the input lines; you didn't give it an argument, so it isn't changing the output line terminator. So, what's it for? My Perl s

Re: [OT?] Shebang question

2004-07-25 Thread Sherm Pendley
On Jul 25, 2004, at 2:09 PM, Edward Moy wrote: This is one of those historical worts. I can ferment it to make beer? Cool! ;-) sherm--

Re: [OT?] Shebang question

2004-07-25 Thread Edward Moy
On Jul 25, 2004, at 1:57 AM, Jarkko Hietaniemi wrote: Which is not really portable with command line options, due to how env(1) works on OS X: $ $ ./test env: perl -wl: No such file or directory That is both against the documentation (env(1)) and the UNIX spec, so I think a bug report to Apple is

Re: [OT?] Shebang question

2004-07-25 Thread Sherm Pendley
On Jul 25, 2004, at 4:57 AM, Jarkko Hietaniemi wrote: That is both against the documentation (env(1)) and the UNIX spec, so I think a bug report to Apple is in order. (Actually, env as such seems to be working okay, so it is more likely a bug in the #! processing.) It's not unique to Mac OS X - I

Re: [OT?] Shebang question

2004-07-25 Thread Jarkko Hietaniemi
> Which is not really portable with command line options, due to how > env(1) works on OS X: > > $ #!/usr/bin/env perl -wl > print "hello world" > > $ ./test > env: perl -wl: No such file or directory That is both against the documentation (env(1)) and the UNIX spec, so I think a bug report to

Re: [OT?] Shebang question

2004-07-24 Thread Jeremy Mates
* Paul McCann <[EMAIL PROTECTED]> > That would probably have been the use of the "env" utility: instead of > > #!/usr/bin/perl > > or similar you make the first line of your scripts read > > #!/usr/bin/env perl Which is not really portable with command line options, due to how env(1) works on

Re: [OT?] Shebang question

2004-07-21 Thread Paul McCann
Hi ~wren, you wrote... > Sorry if this is off-topic, but I seem to recall > sometime fairly recently (less than a year, more than > a few weeks) someone mentioned a way to "autofind" the > path to perl on the shebang line so you don't need to > hardcode the path. I can't seem to find the p

[OT?] Shebang question

2004-07-21 Thread wren argetlahm
Sorry if this is off-topic, but I seem to recall sometime fairly recently (less than a year, more than a few weeks) someone mentioned a way to "autofind" the path to perl on the shebang line so you don't need to hardcode the path. I can't seem to find the post in the archives. Does any one remember