|
From: | Charles Wilson |
Subject: | Re: cygwin: need to use the correct 'head.exe' |
Date: | Tue, 11 Mar 2003 00:42:50 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 |
Okay, okay, uncle!! <g>I'll resubmit a (very) simple patch to change the use of 'head -n 10' within win32_libid() to '$SED 10q' or some variant thereof.
Alexandre Duret-Lutz wrote:
"Bob" == Bob Friesenhahn <address@hidden> writes:[...] Bob> I also believe it is worth investigating to see if using 'sed' is Bob> acceptable. It seems that the targets which execute win32_libid() areBob> highly constrained
Not entirely so. You'd use the *build* platform's head or sed, even though the host/target platform is "highly constrained". But, if sed will do the job, I'm happy.
so some simple testing will verify if sed is a
Bob> reasonable substitute for those targets. Bob> Adding more tests to the configure script makes it larger and slower, Bob> which likely nullifies any benefits from using head. FWIW, Automake removed all uses of `head' and `tail' last year. 2002-02-18 Paul Eggert <address@hidden> * lib/depcomp: Don't use "tail +3"; it's not portable to POSIX 1003.1-2001 hosts. 2002-02-18 Jim Meyering <address@hidden> * tests/cond12.test: Use sed 1q, not `head -n 1'. The latter is not portable to some old systems. * m4/depout.m4: Don't use `head -1'; it's no longer portable. Use `sed 1q' instead. * tests/insthook.test: Likewise.
[Prev in Thread] | Current Thread | [Next in Thread] |