diff options
author | Jim Meyering <jim@meyering.net> | 1999-11-11 13:46:19 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-11-11 13:46:19 +0000 |
commit | b6a764d8c63f9eac7aca81668deb7da1d70dc64a (patch) | |
tree | 7b4eed2822410e79bb459ade919d9c5259cd5e89 /tests/mv/into-self-2 | |
parent | 07d20c7e44600338ddbb6d399a5873e859290d45 (diff) | |
download | coreutils-b6a764d8c63f9eac7aca81668deb7da1d70dc64a.tar.xz |
Add a test for this fix.
Diffstat (limited to 'tests/mv/into-self-2')
-rwxr-xr-x | tests/mv/into-self-2 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/mv/into-self-2 b/tests/mv/into-self-2 index 2abffcf98..84b02576b 100755 --- a/tests/mv/into-self-2 +++ b/tests/mv/into-self-2 @@ -38,6 +38,9 @@ export LANG # This mv command should exit nonzero. mv $symlink $file > out 2>&1 && fail=1 +# And so should this one. +mv $file $symlink >> out 2>&1 && fail=1 + sed \ -e "s,mv:,XXX:," \ -e "s,$file,YYY," \ @@ -46,6 +49,7 @@ sed \ cat > exp <<\EOF XXX: `ZZZ' and `YYY' are the same file +XXX: `YYY' and `ZZZ' are the same file EOF #' |