4 not
() { "$@" && exit 1 ||
:; }
6 # Some tests for 'darcs whatsnew '
16 echo hello world
> bar
/baz
18 darcs record
-la -m "add foo"
20 echo goodbye world
>> bar
/baz
22 # goodbye should show up precisely once
26 grep goodbye out |
wc -l |
grep 1
28 darcs wh bar bar
/baz
> out
30 grep goodbye out |
wc -l |
grep 1
33 echo not
date > bar
/foo
35 darcs wh bar bar
/baz
> out
37 grep date out |
wc -l |
grep 1
41 grep date out |
wc -l |
grep 1
43 darcs wh foo foo foo
> out
45 grep date out |
wc -l |
grep 1