🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by david d `zoo' zuhn Fri, 18 Dec 1992 02:56
sed-1.13 is broken
#1223
Author: 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   |    
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads