GNU bug report logs - #6138
mv while maintaining relative symbolic links

Previous Next

Package: coreutils;

Reported by: Peng Yu <pengyu.ut <at> gmail.com>

Date: Fri, 7 May 2010 21:02:02 UTC

Severity: wishlist

Done: Bob Proulx <bob <at> proulx.com>

Bug is archived. No further changes may be made.

Full log


Message #31 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Voelker, Bernhard" <bernhard.voelker <at> siemens-enterprise.com>
To: Peng Yu <pengyu.ut <at> gmail.com>
Cc: "6138 <at> debbugs.gnu.org" <6138 <at> debbugs.gnu.org>,
	"bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>,
	Bob Proulx <bob <at> proulx.com>
Subject: RE: bug#6138: mv while maintaining relative symbolic links
Date: Mon, 10 May 2010 15:45:35 +0200
Peng Yu wrote:
> On Mon, May 10, 2010 at 4:37 AM, Voelker, Bernhard wrote:
>> you need a reference to the actual inode, don't you?
>> So what a about using hardlinks?
>
> Harlinks do not work across filesystems. I think that it is better
> stick with symbolic links.

you are right, of course.
You'll have to decide what you need:
either you want to have a stable filename (then you use symlinks),
or you want a stable inode reference (then you use hardlinks,
unless you're on a different filesystem) ... or like Bob wrote:
write your own shell script for that situation.

Have a nice day,
Berny





This bug report was last modified 14 years and 354 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.