[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch for "mv -s" option

From: Paul Jarc
Subject: Re: Patch for "mv -s" option
Date: Fri, 19 Nov 2004 13:18:28 -0500
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

Brendan Byrd/SineSwiper <address@hidden> wrote:
> address@hidden:~/tmp/a> mv -s b/f .
> mv: `b/f': can make relative symbolic links only in current directory

Does "mv -s b/f b/.." work?  If not, I'd think that case (where the
destination starts with all the same path components as the source
file, up to the source's basename) could be made to work without too
much extra effort.  It would be equivalent to:
cd "$(dirname "$1")" && mv -s "$(basename "$1")" "${$2/$(dirname "$1")/}"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]