From owner-freebsd-stable Thu Nov 30 20:39:13 2000 Delivered-To: freebsd-stable@freebsd.org Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37]) by hub.freebsd.org (Postfix) with ESMTP id 5A11B37B400 for ; Thu, 30 Nov 2000 20:39:10 -0800 (PST) Received: by starbug.ugh.net.au (Postfix, from userid 1000) id 4EA8BA827; Fri, 1 Dec 2000 15:39:02 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by starbug.ugh.net.au (Postfix) with ESMTP id 472CD5469; Fri, 1 Dec 2000 14:39:02 +1000 (EST) Date: Fri, 1 Dec 2000 14:39:02 +1000 (EST) From: andrew@ugh.net.au To: Anand Ranganathan Cc: stable@freebsd.org Subject: Re: tcsh bug? In-Reply-To: <20001127111136.A30905@desktop.com> Message-ID: X-WonK: *wibble* MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 27 Nov 2000, Anand Ranganathan wrote: > Basically, when I "set color" the ls-F builtin seems to consider the > options to ls as the file arguments to ls. This is weird, since ls-F What's happening is when you type ls-F -x where x is an argument tcsh doesn't know how to deal with it execs an ls from your path. If color is set it execs ls --color=auto -x (where x is the argument(s) you specified). I think --color=auto is a linux thing. When FreeBSD's ls sees (presumably with a call to getopt) an argument starting with -- it ignores that argument and finishes switch processing so anything folowing is interpreted as a filename. To solve the problem you seen to set color=ls-F. Andrew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message