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

Peter Wang novalazy at gmail.com
Wed Feb 11 14:36:32 AEDT 2009


2009/2/11 Paul Bone <pbone at csse.unimelb.edu.au>:
> On Wed, Feb 11, 2009 at 01:54:13PM +1100, Peter Wang wrote:
>> 2009/2/11 Paul Bone <pbone at csse.unimelb.edu.au>:
>> > @@ -1,4 +1,4 @@
>> > -#!/usr/local/bin/perl -w
>> > +#!/bin/sh -c "perl -w"
>>
>> Does this work?  '-c "perl -w"' is likely to be passed to /bin/sh as a single
>> argument on most systems.
>>
>
> I tested it on taura and it worked correctly.

Are you sure?

    wangp at taura ~ % cat hi
    #!/bin/sh -c "perl -w"
    print "hi\n";

    wangp at taura ~ % ./hi
    /bin/sh: Illegal option -
    zsh: exit 2     ./hi

Peter
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list