bug-coreutils
[Top][All Lists]
Advanced

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

Re: Slash appears twice using ls -ldF


From: Eric Blake
Subject: Re: Slash appears twice using ls -ldF
Date: Mon, 06 Feb 2006 07:16:03 -0700
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Paul Eggert on 2/6/2006 12:11 AM:
> 
> Solaris 10 "ls" (both /bin/ls and /usr/xpg4/bin/ls) appends the slash.
> 
> OpenBSD 3.4 /bin/ls is similar to Solaris 10.
> 
> So, if we change this, we'll introduce an incompatibility with
> widespread existing practice.  I'm a bit inclined to let sleeping dogs
> lie, unless perhaps we're actually on a system where / and // are
> different directories.

Sounds fine to me.  No one has yet complained on cygwin that ls -dF turns
/ into // and // into ///, so being consistent by always appending the
slash seems reasonable for now (especially since with --color, the
appended slash is a different color than the filename).  I still have an
outstanding patch for basename/dirname treatment of //, and now that my
copyright papers are final, I should probably resubmit it for inclusion in
6.x.  That patch provides the ability to detect if // is distinct at
configure time (but in cross-compiles, must assume that // is distinct);
if anyone ever wants to avoid turning / into // we will then already have
the macro for deciding when to do the extra check.  But for now, I will
not be changing ls's behavior with / or //, even when appending the
trailing slash changes the filename printed.

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD51oj84KuGfSFAYARAvoWAKC+dBKEKSTf1jJ3AYBYS0FOmzm6gQCeNzfr
qeixVZwuCmm7KII7HyU+mmA=
=c3rL
-----END PGP SIGNATURE-----




reply via email to

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