/usr/local/bin in $PATH in system scripts?

Micah Cowan micahcowan at ubuntu.com
Fri May 11 03:33:41 UTC 2007

Ming Hua wrote:
> On Thu, May 10, 2007 at 08:59:19AM -0700, Micah Cowan wrote:
>> Fergal Daly wrote:
>>> You are also implying that everything in /usr/bin that start with
>>> #! /usr/bin/{perl,python,...}
>>> is wrong and should actually start with
>>> #! {perl,python,...}
>> That doesn't work. #! requires a path.
> For the sake of discussion, I think
> #!/usr/bin/env perl
> will pick up $PATH and is a valid #! line.  I also believe this is widely
> used.

Yes, it will. But isn't that a somewhat silly suggestion considering the
context? If /usr/bin/perl were "bad" then /usr/bin/env would be just as
"bad", it seems to me...

Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20070510/89d7611b/attachment.sig>

More information about the Ubuntu-devel-discuss mailing list