Date: Wed, 31 May 2000 01:01:07 +0100 From: Brian Somers <brian@Awfulhak.org> To: Tim Vanderhoek <vanderh@ecf.utoronto.ca> Cc: Brian Somers <brian@Awfulhak.org>, Doug Barton <DougB@gorean.org>, freebsd-bugs@FreeBSD.org, brian@hak.lan.Awfulhak.org Subject: Re: bin/18900: patch to add colorizing feature to /bin/ls Message-ID: <200005310001.BAA28109@hak.lan.Awfulhak.org> In-Reply-To: Message from Tim Vanderhoek <vanderh@ecf.utoronto.ca> of "Tue, 30 May 2000 19:29:13 EDT." <20000530192913.A86086@orange>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Tue, May 30, 2000 at 10:46:39PM +0100, Brian Somers wrote:
> >
> > The unix way would be to have a ``colourise'' program - I could even
> > live with ``colorize'' !!! Making things look colourful is not the
> > job of ls(1).
>
> How does ``colo[u]?i[sz]e'' tell the difference between ~/regfile and
> ~/fifo without doing a stat() on them? Isn't stat() the job of ls(1)?
>
> How would you code the existing -F option using a filter?
cat >/bin/myls <<eof
#! /bin/sh
exec ls -F "$@" | colourise
eof
or whatever... of course it's easier to say ``alias ls="gnuls -G"''...
> --
> Signature withheld by request of author.
--
Brian <brian@Awfulhak.org> <brian@[uk.]FreeBSD.org>
<http://www.Awfulhak.org> <brian@[uk.]OpenBSD.org>
Don't _EVER_ lose your sense of humour !
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005310001.BAA28109>
