procmail
[Top] [All Lists]

Re: GNU sed version 2.05 is broken?

1997-10-17 18:34:18
-----BEGIN PGP SIGNED MESSAGE-----

=== Nothing above this line is part of the message. ===

bidmead(_at_)cbidmead(_dot_)demon(_dot_)co(_dot_)uk wrote:
:Here's how the old sed on my NeXT machine behaves:
:
:bash-2.00$ sed 's/2/too/'
:2 2 solid flesh^D
:
:too 2 solid flesh
:
:GNU sed 2.05 does exactly this too.
:
:But when you go global they behave differently. My old NeXT sed:
:
:bash-2.00$ sed -g 's/2/too/'
:2 2 solid flesh^D
:
:too too solid flesh
:
:Here's GNU sed's variant on the above:
:
:[root(_at_)ls550 bidmead]# sed -g 's/2/too/'
:sed: illegal option -- g
:Usage: sed [-nV] [--quiet] [--silent] [--version] [-e script]
:        [-f script-file] [--expression=script] [--file=script-file] [file...]
:
:...in other words, collapse of stout party.  Doesn't understand -g,
:misinterpets it as -- g and calls it an "illegal option".  Yet the GNU
:man page say it does understand -g (and I should hope it would...).

I also have GNU sed 2.05.  I have been unable to find anything about a
- -g switch in its man page.

Have you tried this?

  sed 's/2/too/g'

That works for me, and should work with other seds also.

Signatures Follow. (tm)

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBNEgOfO7FqQNEGv6lAQFiMgQAoCoCumz9DdbRmiwt81LFAXvpCG3zZhoD
fWz3zQ1q5NzrsFouc9dkXcn/wszkYo2zmm5n8wP3+G8JXHM3IwXXk+PeptXqn52U
oQrpcWo5Z7yvz7awZTIKVsTGCXjhmUaxLSjXD/b/yU/66HO/0KS/ki7BX0LjBkDC
bwSNkqNO3EA=
=JvM3
-----END PGP SIGNATURE-----

-- It is now safe to turn off your computer.
Bill Evans/Box 4829/Irvine, California 92616/(714)551-2766  _   /| ACK!
Email-To: wje(_at_)acm(_dot_)org  -- PGP encrypted mail preferred. --  \`o_O' /
   Finger wje(_at_)netcom(_dot_)com for public key.   Key #: 441AFEA5   =( )=
PGPprint: FB D0 1C 1D EF DC 26 BA  B3 9E 84 0B 40 D6 59 9C     U

<Prev in Thread] Current Thread [Next in Thread>