Fix the following testcase by disabling global substitution if the regex
authorGlenn L McGrath <bug1@ihug.co.nz>
Sat, 13 Sep 2003 15:12:22 +0000 (15:12 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Sat, 13 Sep 2003 15:12:22 +0000 (15:12 -0000)
commitf36635cec6da728fe06b849089ce2f6c1690dc67
treeb30e5d8216a515f0e549f29802d915eee9991e08
parentc18ce373a21f72b23259c9c15503ac8800d605c7
Fix the following testcase by disabling global substitution if the regex
is anchored to the start of line, there can be only one subst.
echo "aah" | sed 's/^a/b/g'
editors/sed.c