Re: sed -i



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"



Relevant Pages

  • Re: Account Lockout in Solaris 8
    ... Thanks to everyone who responded to my question re: Solaris account ... lockout. ... intended recipient is prohibited. ...
    (Focus-SUN)
  • Re: remove consecutive blank lines
    ... Which, of course, won't work under Solaris. ... I don't have a Solaris account with which to test, ... which constructs fail under Solaris's old awk. ... gawk for Windows and cygwin, mawk, GnuWin32's nawk, and Kernighan's ...
    (comp.lang.awk)
  • Real pain with SegFoult
    ... For three days I'am looking for a bug, but I'm not able to find it. ... always works fine at home but on Solaris it gives me Seqmentation Foults ... It not only doesn't compile on my Solaris but also make some problems on ... but only on my home linux. ...
    (comp.lang.c)
  • Re: Real pain with SegFoult
    ... It is obvious that real bug have place ... This kind of bugs are just a bit more difficult to debug ... always works fine at home but on Solaris it gives me Seqmentation Foults ... I have used a debugger a lot. ...
    (comp.lang.c)
  • HP-UX NFS problems with Solaris ZFS/NFS server
    ... We have a Solaris NFS server with the backend filesystem being ZFS. ... but writes hang the HP-UX NFS client. ... turns out the problem is with HP-UX. ... >to one of our support people, HP confirmed the bug in their code ...
    (comp.sys.hp.hpux)