Re: [PATH] sed -e '/RE/r rfile/' needs space in 'r rfile'
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jul 8, 2006, 18:57 UTC
- Message-ID
- <Pine.LNX.4.63.0607082055360.29667@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <7v7j2oq7h3.fsf@assigned-by-dhcp.cox.net>
Hi,
On Sat, 8 Jul 2006, Junio C Hamano wrote:
Show 10 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes: > > >> in commit 07002287f3e219a16a948a8a6eca0a41162a491f > >> you cleaned up 'replace ugly and unportable sed invocation' as you said. > >> Please note, that some SEDs (like HP-UX one) mandate a space between 'r' > >> and 'rfile'. > > > > Ack. Note that this is yet-another-reason to step away from scripts. > > Are you talking about doing this part in the Makefile in C ;-)?
If it is not portable, then yes ;-)
But of course, you know the spirit this was written in: I had no way to test with sed on HP-UX, so I do not know if my change works there. However, I know that if it is C -- except for bugs in HP-UX's C compiler -- then it works on HP-UX as expected.
Ciao, Dscho