| Summary: | ls-F with set color doesn't accept flags | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Adrian Chadd <adrian> |
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 5.0-CURRENT | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Adrian Chadd
2000-05-05 16:00:00 UTC
Can you clarify which ls you're talking about here? Is it the one build into a shell, /bin/ls, or a port? Joe On Fri, May 05, 2000 at 04:55:21PM +0200, adrian@freebsd.org wrote: > >Synopsis: ls-F with set color doesn't accept flags With tcsh(1), not ls(1). :-> -- Bill Fumerola - Network Architect / Computer Horizons Corp - CVM e-mail: billf@chc-chimes.com / billf@FreeBSD.org You, Joe Karthauser, were spotted writing this on Fri, May 05, 2000 at 08:20:02AM -0700: > The following reply was made to PR bin/18397; it has been noted by GNATS. > > From: Joe Karthauser <joe@pavilion.net> > To: adrian@FreeBSD.ORG > Cc: FreeBSD-gnats-submit@FreeBSD.ORG > Subject: Re: bin/18397: ls-F with set color doesn't accept flags > Date: Fri, 5 May 2000 16:10:23 +0100 > > Can you clarify which ls you're talking about here? Is it the one build > into a shell, /bin/ls, or a port? This is our new csh (==tcsh) builtin. Took me some time to figure it out, too ;) -- Anatoly Vorobey, mellon@pobox.com http://pobox.com/~mellon/ "Angels can fly because they take themselves lightly" - G.K.Chesterton On Fri, May 05, 2000, Bill Fumerola wrote:
> On Fri, May 05, 2000 at 04:55:21PM +0200, adrian@freebsd.org wrote:
>
> > >Synopsis: ls-F with set color doesn't accept flags
>
> With tcsh(1), not ls(1). :->
>
Ok, I am lame. This is what hapens when you're busy working on
one project, get distracted by IRC, then submit a PR. :P
Adrian
On Fri, May 05, 2000 at 08:40:03AM -0700, Adrian Chadd wrote: > > > >Synopsis: ls-F with set color doesn't accept flags ls-F never groks flags, it'll always fall back on ls(1) whenever flags are given. Given this, here's an excerpt from man csh: color If set, it enables color display for the builtin ls-F and it passes --color=auto to ls. Alterna- tively, it can be set to only ls-F or only ls to enable color only to one command. Setting it to nothing is equivalent to setting it to (ls-F ls). So when you ``set color'' and ``ls-F -l'', our ls(1) gets ``ls -CF --color=auto -l'' and is naturally confused. The solution is to use ``set color=ls-F''. If that is not a disgusting Linuxism, I don't know what is. -- Anatoly Vorobey, mellon@pobox.com http://pobox.com/~mellon/ "Angels can fly because they take themselves lightly" - G.K.Chesterton State Changed From-To: open->closed This problem appears to have been fixed. |