sed -e 's/$/ \\/g' /etc/passwd loops forever
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 17 Feb 1994 06:28:43 +0000 (22:28 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 17 Feb 1994 06:28:43 +0000 (22:28 -0800)
commita3a33365df8e29db1358d32a80001a1a1f04f739
tree502ab7870f401dae00773f3ae398e2ed484041dd
parentaf1eaad759f17f2ab7723f14779fe4a2cf54a248
sed -e 's/$/ \\/g' /etc/passwd loops forever
break out of the "g" loop when the regular expression being substituted
is of zero length
From: Diomidis Spinellis <dspin@leon.nrcps.ariadne-t.gr>

SCCS-vsn: usr.bin/sed/process.c 8.2
usr/src/usr.bin/sed/process.c