repo.or.cz
/
git-darcs-import.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Follow upstream changes -- rest
[git-darcs-import.git]
/
tests
/
issue1041.sh
blob
8810f699c40459757a446e9863f76a7aa10eb0d1
1
#!/usr/bin/env bash
2
set -ev
3
4
## The builtin ! has the wrong semantics for not.
5
not
() {
"$@"
&&
exit
1
||
:; }
6
7
rm
-rf
temp1 temp2
8
9
# this should fail, since temp1 doesn't exist...
10
not darcs get temp1 temp2
11
12
# verify that temp2 wasn't created
13
not
cd
temp2
14
15
rm
-rf
temp1 temp2