Re: #! syntax
Quoting Michael O'Brien (mobrien@pixar.com):
> The problem I found with env was that the shell incorrectly passes args to
> env:
>
> % head -1 t348.sh
> #! /usr/bin/env perl -w
> % ./t348.sh
> env: perl -w: No such file or directory
>
> How does one get around this? Please don't say, "Don't use perl."
Isn't it just:
% head -2 t348.sh
#! /usr/bin/env perl
$WARNING=1;
%
Cheers,
--
Email: d.wright@open.ac.uk Tel: +44 1908 653 739 Fax: +44 1908 655 151
Snail: David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer: These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.
Reply to: