4 # trick: requiring something to fail
5 not
() { "$@" && exit 1 ||
:; }
7 # trick: portably getting the pwd
9 if uname |
grep -i cygwin
> /dev
/null
; then
15 # setting IFS is an ugly hack for Cygwin
16 # so that the portable_pwd backtick
20 # trick: OS-detection (if needed)
21 if echo $OS |
grep -i windows
; then
22 echo This
test does not work on Windows
26 # set up the repository
27 rm -rf temp1
# another script may have left a mess.
33 # trick: hitting 'enter' in interactive darcs record
34 echo n
/ |
tr / \\012 | darcs record