From adrian@vader.creative.net.au  Fri May  5 07:55:41 2000
Return-Path: <adrian@vader.creative.net.au>
Received: from vader.creative.net.au (vader.creative.net.au [203.56.168.35])
	by hub.freebsd.org (Postfix) with ESMTP id 5115E37BC11
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  5 May 2000 07:55:26 -0700 (PDT)
	(envelope-from adrian@vader.creative.net.au)
Received: (from adrian@localhost)
	by vader.creative.net.au (8.9.3/8.9.3) id QAA29388;
	Fri, 5 May 2000 16:55:21 +0200 (CEST)
	(envelope-from adrian)
Message-Id: <200005051455.QAA29388@vader.creative.net.au>
Date: Fri, 5 May 2000 16:55:21 +0200 (CEST)
From: adrian@freebsd.org
Sender: adrian@vader.creative.net.au
Reply-To: adrian@freebsd.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: ls-F with set color doesn't accept flags
X-Send-Pr-Version: 3.2

>Number:         18397
>Category:       bin
>Synopsis:       ls-F with set color doesn't accept flags
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May  5 08:00:00 PDT 2000
>Closed-Date:    Fri Dec 28 16:45:00 PST 2001
>Last-Modified:  Fri Dec 28 16:57:22 PST 2001
>Originator:     Adrian Chadd
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:

FreeBSD vader.creative.net.au 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Thu Apr 27
23:49:13 CEST 2000     adrian@vader.creative.net.au:/usr/src/sys/compile/VADER
i386

but also tested on the latest -current by peter (thanks!)

>Description:

ls-F doesn't like flags when 'set color' is used

>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
#

>Fix:

No idea.


>Release-Note:
>Audit-Trail:

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?
 
 Joe
 

From: Bill Fumerola <billf@chc-chimes.com>
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 11:22:51 -0400

 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
 
 
 
 

From: Anatoly Vorobey <mellon@pobox.com>
To: Joe Karthauser <joe@pavilion.net>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/18397: ls-F with set color doesn't accept flags
Date: Fri, 5 May 2000 11:29:01 -0400

 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
 

From: Adrian Chadd <adrian@freebsd.org>
To: Bill Fumerola <billf@chc-chimes.com>
Cc: adrian@freebsd.org, FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/18397: ls-F with set color doesn't accept flags
Date: Fri, 5 May 2000 23:30:50 +0800

 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
 
 

From: Anatoly Vorobey <mellon@pobox.com>
To: Adrian Chadd <adrian@FreeBSD.ORG>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: bin/18397: ls-F with set color doesn't accept flags
Date: Sat, 6 May 2000 18:10:19 +0000

 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 
State-Changed-By: joe 
State-Changed-When: Fri Dec 28 16:45:00 PST 2001 
State-Changed-Why:  
This problem appears to have been fixed. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=18397 
>Unformatted:
