Re: [TRIVIAL] head syntax
* Thomas Roessler <roessler@xxxxxxxxxxxxxxxxxx> [2003-09-18 11:10]:
> Breaking longstanding command line syntax is about as dumb as
> putting wildcard records in TLD zones.
Yes, but to be fair POSIX requires it and the GNU folks only followed
suit.
> I seem to recall that the suggested change was said to break things
> on other Unix systems. The correct patch is probably to add an
On very old systems, perhaps. You can use "sed 1q" which works
everywhere.
> > -MUTTVERSION="`mutt -v | head -1 | awk '{print $2}'`"
> > +MUTTVERSION="`mutt -v | head -n 1 | awk '{print $2}'`"
+MUTTVERSION="`mutt -v | sed 1q | awk '{print $2}'`"
--
Martin Michlmayr
tbm@xxxxxxxxxx