Bug 18397

Summary: ls-F with set color doesn't accept flags
Product: Base System Reporter: Adrian Chadd <adrian>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   

Description Adrian Chadd freebsd_committer freebsd_triage 2000-05-05 16:00:00 UTC
ls-F doesn't like flags when 'set color' is used

Fix: 

No idea.
How-To-Repeat: 
# ls-F -a
./              boot/           etc/            mnt/            stand/
../             cache/          home@           modules/        sys@
.cshrc          cdrom/          kernel*         proc/           tmp/
.profile        compat@         kernel-test     root/           usr/
COPYRIGHT       dev/            kernel.GENERIC* s/              var/
bin/            dist/           kernel.old*     sbin/
# set color
# ls-F -a
ls: -a: No such file or directory
#
Comment 1 joe 2000-05-05 16:10:23 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
Comment 2 Bill Fumerola 2000-05-05 16:22:51 UTC
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
Comment 3 mellon 2000-05-05 16:29:01 UTC
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
Comment 4 Adrian Chadd freebsd_committer freebsd_triage 2000-05-05 16:30:50 UTC
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
Comment 5 mellon 2000-05-06 19:10:19 UTC
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
Comment 6 joe freebsd_committer freebsd_triage 2001-12-29 00:45:00 UTC
State Changed
From-To: open->closed

This problem appears to have been fixed.