1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-18 21:14:11 +01:00

19382: improved zmv documentation

This commit is contained in:
Peter Stephenson 2004-01-16 15:29:26 +00:00
parent a06990cc45
commit 4cddde6df5
2 changed files with 11 additions and 1 deletions

@ -1,3 +1,8 @@
2004-01-16 Peter Stephenson <pws@csr.com>
* 19382: Functions/Misc/zmv: better error message if move failed
due to file system not recognising new name as being different.
2004-01-15 Oliver Kiddle <opk@zsh.org>
* 19378: Completion/Debian/Command/_update-rc.d,

@ -263,7 +263,12 @@ for f in $files; do
elif [[ -n $from[$g] && ! -d $g ]]; then
errs=($errs "$f and $from[$g] both map to $g")
elif [[ -f $g && -z $opt_f ]]; then
errs=($errs "file exists: $g")
if [[ $f != $g && $f -ef $g ]]; then
errs=($errs "file exists: $g
(Probably the same file, owing to file system limitations.)")
else
errs=($errs "file exists: $g")
fi
fi
from[$g]=$f
to[$f]=$g