From owner-freebsd-bugs Sun May 7 1:10:50 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 1737F37B865 for ; Sun, 7 May 2000 01:10:14 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id BAA64628; Sun, 7 May 2000 01:10:13 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Sun, 7 May 2000 01:10:13 -0700 (PDT) Message-Id: <200005070810.BAA64628@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Anatoly Vorobey Subject: Re: bin/18397: ls-F with set color doesn't accept flags Reply-To: Anatoly Vorobey Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/18397; it has been noted by GNATS. From: Anatoly Vorobey To: Adrian Chadd 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message