Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: v3.1.4 Files/mv bug is a feature



On Oct 14, 10:48am, Zefram wrote:
} Subject: Re: v3.1.4 Files/mv bug
}
} Phil Pennock wrote:
} >In zsh v.3.1.4, the 'files' module ... the 'mv' command doesn't handle
} >moving across devices.
} 
} This is a deliberate feature.

That probably ought to be documented, then.

Index: Doc/Zsh/mod_files.yo
===================================================================
--- mod_files.yo	1998/06/01 17:08:43	1.1.1.1
+++ mod_files.yo	1998/10/14 14:45:04
@@ -48,6 +48,12 @@
 The tt(-i) option causes the user to be queried about replacing
 any existing files.  The tt(-f) option causes any existing files to be
 silently deleted, without querying.  tt(-f) takes precedence.
+
+Note that this tt(mv) command performs renaming only.  It cannot move
+files across devices.  This is a deliberate feature.  Files can only
+be copied across devices, not truly moved, and the purpose of tt(mv)
+is to move files.  If the desired action is copy followed by remove,
+use tt(cp) and tt(rm).
 )
 findex(rm)
 item(tt(rm) [ tt(-dfirs) ] var(filename) ...)(

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author