[12955] in Athena Bugs
rsaix 7.7F: sed
daemon@ATHENA.MIT.EDU (Albert Dvornik)
Tue Nov 29 16:59:06 1994
To: bugs@MIT.EDU
Date: Tue, 29 Nov 1994 16:58:57 EST
From: Albert Dvornik <bert@MIT.EDU>
System name: bombardier
Type and version: POWER 7.7F (1 update(s) to same version)
Display type: POWER_Gt1
What were you trying to do?
use sed with a single empty line of input.
What's wrong:
with some patterns, sed falls into an infinite loop.
for instance,
echo "" | /bin/sed -e 's/AIX_SED_SUCKS.*//g'
spins forever. Any pattern of the form
<nonempty-pattern>.*
or
.*<nonempty-pattern>
seems to do it, in fact.
What should have happened:
Instead of spinning, sed should print a single blank line of
on standard output and exit.
Please describe any relevant documentation references:
AIX sed sucks.
AIX sucks.