[m-rev.] diff: Fix problems with check.pl when using remote CVS.

Paul Bone pbone at csse.unimelb.edu.au
Wed Feb 11 16:49:29 AEDT 2009


On Wed, Feb 11, 2009 at 04:19:11PM +1100, Zoltan Somogyi wrote:
> On 11-Feb-2009, Paul Bone <pbone at csse.unimelb.edu.au> wrote:
> > sh still didn't work when I wrote it like this.  I've moved to
> > /usr/bin/env.  I've also learnt that some systems don't (correctly)
> > interpret more than one argument on the #! line.
> 
> It is the other way around. Every system correctly handles one argument,
> but few handle more, because it was not originally required.

That's what I was trying to say.

> >     #!/usr/bin/env perl -w 
> 
> The right solution is to use just #!/bin/sh, and then invoke perl
> IN THE BODY OF THE SHELL SCRIPT.

Ok, I've seen examples of where we do this, I'll copy one of them.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20090211/1b56eaf7/attachment.sig>


More information about the reviews mailing list