by stan <smoore@[EMAIL PROTECTED]
>
Mar 29, 2008 at 07:26 PM
Steffen Schuler wrote:
> On Fri, 28 Mar 2008 20:56:07 -0700, twf_cc wrote:
>
> [snip]
>> $ cat junk
>> #! /bin/gawk -f reverse.awk --source
>>
>> {
>> print reverse($0)
>> }
>>
> [snip]
>> $ echo abcd |./junk
>> gawk: fatal: can't open source file ` reverse.awk --source ' for
reading
>> (No such file or directory)
> [snip]
>
>
> in many flavors of UNIX like the Linux emulation CYGWIN the shebang line
> can only have one argument (option) and must be shorter than 32 bytes.
> Therefore your shebang approach doesn't work.
Are you sure about the size of the limit? I agree there is a limit but I
thought it was more than 32 bytes. I know it is for the linux (suse) I
have handy and I just tried cygwin with this:
try.sh
#! /home/smoore/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bash.exe
echo "hello"
With no problems.