Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Awk > Re: AWKPATH que...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 7 Topic 2210 of 2317
Post > Topic >>

Re: AWKPATH question

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.
 




 7 Posts in Topic:
AWKPATH question
twf_cc <twfccc@[EMAIL   2008-03-28 20:56:07 
Re: AWKPATH question
Ed Morton <morton@[EMA  2008-03-28 22:59:42 
Re: AWKPATH question
"Rajan" <svr  2008-03-29 01:46:51 
Re: AWKPATH question
twf_cc <twfccc@[EMAIL   2008-03-29 07:22:46 
Re: AWKPATH question
Ed Morton <morton@[EMA  2008-03-29 09:25:20 
Re: AWKPATH question
Steffen Schuler <schul  2008-03-29 17:05:58 
Re: AWKPATH question
stan <smoore@[EMAIL PR  2008-03-29 19:26:52 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 20:22:03 CDT 2008.