Re: [OT] Re: feature request: option to start script not from the very beginning of file

2011-08-11 Thread Stephane CHAZELAS
2011-08-02, 23:41(+02), mhenn: > Am 02.08.2011 15:55, schrieb Stephane CHAZELAS: [...] >> What about: >> >> #! /bin/bash - >> :||:<<\#__END__ >> >> whatever you like here >> >> #__END__ [...] > Why did you use :||:<< ... > and not just :<<... ? > > when testing it, it doesn't make any difference

Re: feature request: option to start script not from the very beginning of file

2011-08-11 Thread Stephane CHAZELAS
2011-08-02, 17:05(+04), Dmitry Bolshakov: [...] > perl has "-x" switch which makes it skip leading file contents until the > #!/bin/perl > line > > imho it would be good to have the same feature in bash What about: #! /bin/bash - :||:<<\#__END__ whatever you like here #__END__ your script star

Re: feature request: option to start script not from the very beginning of file

2011-08-02 Thread Clark J. Wang
On Tue, Aug 2, 2011 at 10:34 PM, Steven W. Orr wrote: > On 8/2/2011 9:05 AM, Dmitry Bolshakov wrote: > >> hi >> >> perl has "-x" switch which makes it skip leading file contents until the >> #!/bin/perl >> line >> >> imho it would be good to have the same feature in bash >> >> > Huge misteak. The

Re: feature request: option to start script not from the very beginning of file

2011-08-02 Thread Steven W. Orr
On 8/2/2011 9:05 AM, Dmitry Bolshakov wrote: hi perl has "-x" switch which makes it skip leading file contents until the #!/bin/perl line imho it would be good to have the same feature in bash Huge misteak. The shebang is processed by the exec system call. As such, it must occupy the first

feature request: option to start script not from the very beginning of file

2011-08-02 Thread Dmitry Bolshakov
hi perl has "-x" switch which makes it skip leading file contents until the #!/bin/perl line imho it would be good to have the same feature in bash -- With best regards Dmitry Bolshakov