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

Re: Bug#479764: shell builtin mv fails to move files across devices



On Tue, May 06, 2008 at 03:42:08PM +0100, martin f krafft wrote:
> lapse:~/debian|master|debian.ch% echo $ZSH_VERSION
> 4.3.6-dev-0+0428
> lapse:~/debian|master|debian.ch% zmodload zsh/files
> lapse:~/debian|master|debian.ch% which mv
> mv: shell built-in command
> lapse:~/debian|master|debian.ch% mv /tmp/debian.ch_T-Shirt_20080422-poll.png .
> mv: /tmp/debian.ch_T-Shirt_20080422-poll.png: invalid cross-device link

Anyone up for changing this in a future version?

    Note  that  this  mv  will not move files across devices.  Historical
    versions of mv, when actual renaming is impossible, fall back on copying
    and removing files; if this behaviour is desired, use cp and rm manually.
    This  may  change  in  a future version.



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