GNU bug report logs - #16730
ls -dF double trailing slash bug

Previous Next

Package: coreutils;

Reported by: Radko Dinev <radko.dinev <at> gmail.com>

Date: Wed, 12 Feb 2014 16:41:01 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eric Blake <eblake <at> redhat.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#16730: closed (ls -dF double trailing slash bug)
Date: Wed, 12 Feb 2014 16:53:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 12 Feb 2014 09:52:31 -0700
with message-id <52FBA6CF.5040900 <at> redhat.com>
and subject line Re: bug#16730: ls -dF double trailing slash bug
has caused the debbugs.gnu.org bug report #16730,
regarding ls -dF double trailing slash bug
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
16730: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16730
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Radko Dinev <radko.dinev <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: ls -dF double trailing slash bug
Date: Wed, 12 Feb 2014 16:45:01 +0200
[Message part 3 (text/plain, inline)]
user <at> host ~$ ls -dF somedir
somedir/

user <at> host ~$ ls -dF somedir/
somedir//

Notice the double trailing slash which shouldn't be there in the second
example.
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Eric Blake <eblake <at> redhat.com>
To: Radko Dinev <radko.dinev <at> gmail.com>, 16730-done <at> debbugs.gnu.org
Subject: Re: bug#16730: ls -dF double trailing slash bug
Date: Wed, 12 Feb 2014 09:52:31 -0700
[Message part 6 (text/plain, inline)]
tag 16730 notabug
thanks

On 02/12/2014 07:45 AM, Radko Dinev wrote:
> user <at> host ~$ ls -dF somedir
> somedir/
> 
> user <at> host ~$ ls -dF somedir/
> somedir//
> 
> Notice the double trailing slash which shouldn't be there in the second
> example.

Not a bug.  Consider:

$ touch '*'
$ chmod +x '*'
$ ls -F '*'
**

ls -F is merely appending the indicator on the end of the name as you
typed it in, even if it results in what looks like a double indicator.

Where it gets interesting is on systems where / and // are distinct, but
for consistency, we still do:

$ \ls -Fd / //
//  ///


-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 11 years and 159 days ago.

Previous Next


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