Re: sed -i
- From: Yar Tikhiy <yar@xxxxxxxxxxxxxxxx>
- Date: Sat, 31 Mar 2007 15:02:21 +0400
On Fri, Mar 30, 2007 at 09:21:33PM +0400, Yar Tikhiy wrote:
[...]
If we've started to delete the pattern space, we should print the[...]
text in place of it because `c' is for `change'. BSD and GNU seds
have this bug, but Solaris sed doesn't have it.
By the way, I found myself w/o a Solaris account, but I was able
to build Solaris sed in FreeBSD quickly from the OpenSolaris sources.
All it took was downloading the following files:
http://cvs.opensolaris.org/source/raw/onnv/onnv-gate/usr/src/ucbcmd/sed/sed.h
http://cvs.opensolaris.org/source/raw/onnv/onnv-gate/usr/src/ucbcmd/sed/sed0.c
http://cvs.opensolaris.org/source/raw/onnv/onnv-gate/usr/src/ucbcmd/sed/sed1.c
http://cvs.opensolaris.org/source/raw/onnv/onnv-gate/usr/src/ucbhead/regexp.h
and issuing this command:
cc -I. -o sed sed*.c
Voila! (Their regexp.h offers definitions of its functions, not
just their prototypes, which made my task very easy.)
Perhaps other basic tools from Solaris could be built in this way
for the purpose of testing, too, in case one needs them but has no
Solaris account at hand.
Another $0.02 from yours truly. :-)
--
Yar
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: sed -i
- From: Giorgos Keramidas
- Re: sed -i
- References:
- sed -i
- From: Yar Tikhiy
- Re: sed -i
- From: Diomidis Spinellis
- Re: sed -i
- From: Yar Tikhiy
- sed -i
- Prev by Date: Re: 32/64bit KSE issues?
- Next by Date: Re: Thread local storage not working with -fPIC and shared objects
- Previous by thread: Re: sed -i
- Next by thread: Re: sed -i
- Index(es):
Relevant Pages
|
|