[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: feature request: option to start script not from the very beginning
From: |
Steven W. Orr |
Subject: |
Re: feature request: option to start script not from the very beginning of file |
Date: |
Tue, 02 Aug 2011 10:34:13 -0400 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 |
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 16 bits of the file. The #! is the magic number that
makes it work. What possible value is there in subverting a perfectly good
system call?
--
Time flies like the wind. Fruit flies like a banana. Stranger things have .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net