Kamil Dworakowski <[email protected]> writes:

> I don't have access to any mac here, but I am pretty sure the culprit
> is the crazy sed line in the test. Patch attached.

    -sed -i -ne "1 p" f # lose the second line of f
    +echo 'first line' > f

sed -i is a gnuism.  Apparently OS X defaults to BSD sed.

A gloss would be something like

    sed -n 1p f >f.new && mv f.new f    # or
    sed '2,$d' f >f.new && mv f.new f

However I think the echo Kamil proposes is clearer.

_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to