[Top][All Lists]
[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
- MinGW issue, Bob Friesenhahn, 2004/10/09
- Re: MinGW issue, Bob Friesenhahn, 2004/10/09
- Re: MinGW issue, Bob Friesenhahn, 2004/10/09
- Re: MinGW issue, Brad, 2004/10/09
- Re: MinGW issue,
Bob Friesenhahn <=
- Re: MinGW issue, Albert Chin, 2004/10/09
- Re: MinGW issue, Charles Wilson, 2004/10/09
- Re: MinGW issue, Albert Chin, 2004/10/09
- Re: MinGW issue, Charles Wilson, 2004/10/09
- Re: MinGW issue, Albert Chin, 2004/10/09
- Re: MinGW issue, Charles Wilson, 2004/10/09
- Re: MinGW issue, Albert Chin, 2004/10/09
- Re: MinGW issue, Charles Wilson, 2004/10/10
- Re: MinGW issue, Bob Friesenhahn, 2004/10/11
- Re: MinGW issue, Bob Friesenhahn, 2004/10/09