On Thu, Apr 23, 2009 at 10:50:12 +1000, Trent W.Buck wrote:
> Solaris, at least, has grep -c.

Applied, thanks!

Avoid GNUism (grep --count).
----------------------------
> Trent W. Buck <[email protected]>**20090423004559
>  Ignore-this: 7bec3c7980d9126d549927c4c1c03f21
> ] hunk ./bugs/issue1442_encoding_round-trip.sh 37
>  darcs record    --repo R -lam '?????? = ?????' '?????? = ?????'
>  darcs changes   --repo R -v '?????? = ?????' >R/log
>  #cat R/log                      # Show the humans what the output was.
> -grep --count '?????? = ?????' R/log >R/count
> +grep -c '?????? = ?????' R/log >R/count
>  echo 5 >R/expected-count
>  cmp R/count R/expected-count    # Both count files should contain "5\n".
>  rm -rf R                        # Clean up after ourselves.

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9

Attachment: pgpqRybmoGZz2.pgp
Description: PGP signature

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

Reply via email to