diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2003-09-16 01:46:36 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2003-09-16 01:46:36 +0000 |
commit | 204ff1cea49c958846cd49175fa9318b81b5756f (patch) | |
tree | a64e6ce8f21b19abda79932248d3439ed3e016e5 /testsuite | |
parent | 96fd1b98f19cd97a534406554f83ae5cab87b3ac (diff) | |
download | busybox-w32-204ff1cea49c958846cd49175fa9318b81b5756f.tar.gz busybox-w32-204ff1cea49c958846cd49175fa9318b81b5756f.tar.bz2 busybox-w32-204ff1cea49c958846cd49175fa9318b81b5756f.zip |
Fix a bug that creapt in recently with substitution subprinting, and add
a test for it.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/sed/sed-subst-subprint | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/sed/sed-subst-subprint b/testsuite/sed/sed-subst-subprint new file mode 100644 index 000000000..24f8bad7d --- /dev/null +++ b/testsuite/sed/sed-subst-subprint | |||
@@ -0,0 +1,9 @@ | |||
1 | busybox sed 's/foo/bar/p'>output <<EOF | ||
2 | foo | ||
3 | bar | ||
4 | EOF | ||
5 | cmp -s output - <<EOF | ||
6 | bar | ||
7 | bar | ||
8 | bar | ||
9 | EOF | ||