autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sed usage in autoheader


From: Akim Demaille
Subject: Re: sed usage in autoheader
Date: 15 Nov 2000 16:32:18 +0100
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

>>>>> "Bruce" == Bruce Korb <address@hidden> writes:

Bruce> Johan Danielsson wrote:
>> Autoheader does `sed "s/[^/]*$//"', which doesn't work with Cray
>> sed, and Cray claims this is in compliance with POSIX. Is this
>> correct?

Bruce> It is irrelevant.  If true and Cray changes, there will still
Bruce> be versions floating around wherein it is broken.  More cruft
Bruce> for the UNIX folklore: never, ever use substitution separator
Bruce> chars inside of the substitution expressions, period.  (If you
Bruce> want portability.)

Do you mean `s,[^/]*$,,' would work here?  Man, how can someone write
something that broken :(.  Johan, could you confirm replacing the
separator with `,' solves the issue?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]