libtool-patches
[Top][All Lists]
Advanced

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

Re: MinGW issue


From: Bob Friesenhahn
Subject: Re: MinGW issue
Date: Sat, 9 Oct 2004 20:14:24 -0500 (CDT)

On Sat, 9 Oct 2004, Brad wrote:

OpenBSD..

$ echo hello | sed -e 1iEXPORTS
sed: 1: "1iEXPORTS": command i expects \ followed by text

Right. The i\ command is as old as dirt since it is documented in Kernighan and Pike's "The Unix Programming Environment".

With syntax modifications

sed 4.0.9 (cygwin):

% echo hello | sed -e '1i\EXPORTS'
EXPORTS
hello

sed 3.02 (mingw):

$ echo hello | sed -e '1i\EXPORTS'
sed: -e expression #2, char 4: Extra characters after command

Solaris sed:

% echo hello | /usr/xpg4/bin/sed -e '1i\EXPORTS'
sed: command garbled: 1i\EXPORTS

FreeBSD sed:

% echo hello | /usr/bin/sed -e '1i\EXPORTS'
sed: 1: "1i\EXPORTS
": extra characters after \ at the end of i command

regardless, this code fragment only needs to work under Cygwin and MinGW so some other means needs to be found to insert a line before the first line, but it doesn't need to be very portable.

Bob
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen




reply via email to

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