On 28.03.2010 14:27, Allan McRae wrote:
> On 28/03/10 22:12, Dieter Plaetinck wrote:
>> Hi Allan,
>>
>> can't we use shebangs instead of inventing our own which-shell-to-use
>> implementation? (#!/bin/sh, #!/bin/bash, ..)
> 
> No we can not unless I am missing something.  We need to source the 
> script and run a particular function within that script.

head -n1 installscript | grep '^#!/.*$'

-- 
Florian Pritz -- {flo,[email protected]

Attachment: signature.asc
Description: OpenPGP digital signature



Reply via email to