[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ls -F indicators
From: |
Eric Blake |
Subject: |
Re: ls -F indicators |
Date: |
Mon, 02 May 2005 07:16:54 -0600 |
User-agent: |
Mozilla Thunderbird 1.0.2 (Windows/20050317) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Paul Eggert on 4/29/2005 3:07 PM:
> Eric Blake <address@hidden> writes:
>
>
>>bash TAB-completion with readline's `set visible-stats on' uses '%'
>>for character-special devices and '#' for block-special devices.
>
>
> Aack. FreeBSD "ls" uses "%" for whiteouts, and nothing for special
> files. I'd rather not have gratuitous incompatibility.
I take it whiteouts are another form of special file, unique to FreeBSD?
What about proposing '^' (with the mnemonic pronounciation caret) as the
character-special indicator, to the bash mailing list? And can coreutils
detect whiteouts on FreeBSD systems, to offer them '%' and colorization
status (similar to how Solaris doors get '>' and dircolors recognizes
DOORS)? Also, I noticed that the comments in lib/filemode.c list a few
filetypes for the first character of `ls -l' that are not mentioned in the
info pages, such as 'n' for network special file. Do any of the other
recognized file types deserve their own indicator flag?
> + ls changes:
> +
> + -p now appends '/' only to directories; it is equivalent to the
> + new option --indicator-style=directory. Use --file-type or
> + --indicator-style=file-type to get -p's old behavior.
> +
Previously, `ls --classify' was short for `ls --indicator-style=classify',
and `ls --file-type' was short for `ls --indicator-style=file-type'. But
`ls --directory' already exists; is there a better choice of indicator
names to allow parallelism for a shorter spelling of `ls
- --indicator-style=directory'? Perhaps `ls --mark-directory'?
- --
Life is short - so eat dessert first!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCdihG84KuGfSFAYARAqebAKDOHcObNcDf5S9PUU+Gy3u6rio4EQCfWy/K
9Dy+lqOQF0SR3QLalWTNJwQ=
=cOuy
-----END PGP SIGNATURE-----