SPUG: How do -aF"\t" in DOS/Windoze?
Scott Blachowicz
scott at sabmail.rresearch.com
Tue Jul 17 19:41:33 CDT 2001
On Tue, Jul 17, 2001 at 03:43:44PM -0700, Tim Maher/CONSULTIX wrote:
> That's cheating too! 8-} I'm trying to find a way to supply all
> the invocation options on the shebang line, without DOS/Windoze freaking
> out about syntax errors. I'm surprised that this is turning out to be
> so difficult! And now that I've delved into this a bit (and strayed from
> my usual Korn shell), I've realized that
> even under the Bash shell on Linux, you're restricted to a single option
> argument on the shebang line. How can you ever supply two options with
> corresponding arguments with this limitation? 8-{ As in
>
> #! /usr/bin/perl -wlnaF':' -i'orig_*'
>
> This doesn't work with Bash on Linux, or Win95 command.com,
> and of course, neither does this:
Hmmm...I'm not really sure about Linux and it's been several years since
I thought about this on any Unix, but I thought that the problem with
the shebang lines wasn't number of arguments, but number of bytes (but I
thought the limit was longer than you're using there). Also, I don't think
it gets interpreted by your shell, but by the underlying system call that
tries to execute the file. But I haven't looked at the source code in
the system that would be doing all that work, so I don't really
know...
Sorry I don't have any real answers...
--
Scott Blachowicz
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
More information about the spug-list
mailing list