From: peter@abbnm.com (Peter da Silva)
Subject: Re: Unexpected result from grep
Date: Tue, 23 Dec 2003 21:01:50 +0000 (UTC) [thread overview]
Message-ID: <bsaafu$kl5$1@jeeves.eng.abbnm.com> (raw)
In-Reply-To: NFZFb.159619$Vu6.57918@twister.rdc-kc.rr.com
In article <NFZFb.159619$Vu6.57918@twister.rdc-kc.rr.com>,
Dan Mercer <dmercer@mn.rr.com> wrote:
> But it severely lessens the need to invoke awk or sed, etc. Because of
> extended globbing, and the new parameter substitution forms, there is
> no need to invoke awk for trivial purposes, as so often was done in the
> past. The less you need external programs, the less you need to
> worry about their portability.
You just need to worry about whether the shell you're using is there or
not. Me, I'd worry about whether I should be using the shell at all.
Look, we didn't start out this side-thread with any multi-hundred-
line script that was longer than many compiled programs, but about
what comes down to about four lines of portable code that didn't use
any gawkisms.
I'm not talking about vast constructs that are pushing the envelope of
shell scripts. I'm talking about install scripts for programs, things
that typically distill down to a few dozen lines at the most, don't
stretch even the most ancient utilities, and seem to be written in
extended shell dialects purely out of habit. I'm talking, well, about
those habits.
If you really need more than sh, if you're going to make me install
another program to get your code to work, then I don't suppose ksh is
as big a deal as Perl.
Except that there's not three highly incompatible versions of Perl in
current use, and Perl is more likely to be there anyway.
I haven't addressed the pseudo-problem of "echo", and I'm not going to.
Nor do I think I'll get into one of those point-by- point cross-griping
exchanges, much as it tempts me.
I do wonder why you think POSIX should have picked zsh, though, since you
seem to prefer ksh and it sure seems like a better shell to me.
--
I've seen things you people can't imagine. Chimneysweeps on fire over the roofs
of London. I've watched kite-strings glitter in the sun at Hyde Park Gate. All
these things will be lost in time, like chalk-paintings in the rain. `-_-'
Time for your nap. | Peter da Silva | Har du kramat din varg, idag? 'U`
next prev parent reply other threads:[~2003-12-23 21:01 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-11 16:13 Unexpected result from grep Dan
2003-12-11 16:32 ` Jens Schweikhardt
2003-12-11 16:37 ` Chris F.A. Johnson
2003-12-11 16:47 ` Stephane CHAZELAS
2003-12-11 18:24 ` Joseph Dionne
2003-12-12 13:19 ` Dan
2003-12-19 20:11 ` Peter da Silva
2003-12-20 16:13 ` Dan Mercer
2003-12-22 21:14 ` Peter da Silva
2003-12-23 16:01 ` Dan Mercer
2003-12-23 21:01 ` Peter da Silva [this message]
2003-12-23 22:15 ` Dan Mercer
2003-12-25 22:29 ` Peter da Silva
2003-12-24 16:41 ` Stephane CHAZELAS
2003-12-25 22:15 ` Peter da Silva
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox