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
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
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
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
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