🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1223

sed-1.13 is broken

#1223
From: david d `zoo' zuhn
Date: Fri, 18 Dec 1992 02:56
22 lines
1066 bytes
This shell script

---------- slice 'n' dice ------------------------------------- file: sed-test
#!/bin/sh
SED=${SED:-sed}
echo "this is a test" | ${SED} -e 's,\|,r,g'
----------

demonstrates a bug in sed-1.13.  

Running this script with SED=/usr/bin/sed (on a Sun4) returns the string
"this is a test", as expected.

Running the script with SED=/usr/latest/bin/sed (which is 1.13), I get the
following output: "rtrhrirsr rirsr rar rtrersrtr"


This happens when compiled with either cc or gcc.

  david d 'zoo' zuhn |    There is great disorder under the heavens,
    cygnus support   |         and the situation is excellent.
    zoo@cygnus.com   |    
Technical Details
Message-ID: <9212180256.AA14598@cygnus.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cygnus.com!zoo

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cygnus.com!zoo
From: zoo@cygnus.com (david d `zoo' zuhn)
Subject: sed-1.13 is broken
Message-ID: <9212180256.AA14598@cygnus.com>
Sender: gnulists@ai.mit.edu
Organization: Cygnus Support -- +1 415 903 1434
Distribution: gnu
Date: Fri, 18 Dec 1992 02:56:55 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 24