GNU bug report logs - #6516
[patch] improving error messages for when 'ln' fails

Previous Next

Package: coreutils;

Reported by: "Benno Schulenberg" <bensberg <at> justemail.net>

Date: Sat, 26 Jun 2010 13:21:01 UTC

Severity: normal

Tags: patch

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Benno Schulenberg" <bensberg <at> justemail.net>
To: 6516 <at> debbugs.gnu.org
Subject: bug#6516: [patch] improving error messages for when 'ln' fails
Date: Sat, 26 Jun 2010 12:21:08 +0200
[Message part 1 (text/plain, inline)]
Hi,

Trying to make a link that already exists, 'ln' prints a message that
is slightly confusing, especially when using '-v' and thus expexting
a progress message.  For example:

$ ln -sv bash /bin/sh
ln: creating symbolic link '/bin/sh': File exists

The 'creating..." seems to say that the link is being created.
The message would be clearer in the following form:

ln: cannot create symbolic link '/bin/sh': File exists

Attached patch makes this change.

Regards,

Benno

-- 
http://www.fastmail.fm - Faster than the air-speed velocity of an
                          unladen european swallow

[0001-ln-print-a-clearer-error-message-when-linking-fails.patch (text/x-patch, attachment)]

This bug report was last modified 15 years and 27 days ago.

Previous Next


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