From 4cddde6df564b295bbb60e226177f005582bc5f5 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 16 Jan 2004 15:29:26 +0000 Subject: 19382: improved zmv documentation --- Functions/Misc/zmv | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Functions/Misc') diff --git a/Functions/Misc/zmv b/Functions/Misc/zmv index 8f8d15a7d..553579232 100644 --- a/Functions/Misc/zmv +++ b/Functions/Misc/zmv @@ -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 -- cgit 1.4.1