4 ## I would use the builtin !, but that has the wrong semantics.
5 not
() { "$@" && exit 1 ||
:; }
10 darcs initialize
--old-fashioned
13 darcs record
-a -m AA
-A x
14 echo '<UGLY HTML-LIKE GARBAGE RETURNED BY BAD HTTP SERVER>' > _darcs
/format
17 # ensure that we successfully get repositories even if they have a bogus
18 # format file, as can happen if no _darcs/format is present (i.e. it's
19 # generated by an older darcs) and an http server fails to produce a 404
20 # error code. This is issue757.
24 echo intentional-error
>> temp
2/_darcs
/format
26 cat temp
2/_darcs
/format
30 not darcs get temp2 temp1
2> err
33 grep intentional-error err
34 grep 'understand repository format' err