diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-11 08:21:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-11 08:21:29 +0000 |
commit | 29cd838eab01ed7110f3ccb2e8c6a35c8a31dbcc (patch) | |
tree | 63ef546b10a81d461e5cf5ed9e98a68cd7dee1aa /src/sed/testsuite/eval.sed | |
parent | Initial commit. (diff) | |
download | kbuild-29cd838eab01ed7110f3ccb2e8c6a35c8a31dbcc.tar.xz kbuild-29cd838eab01ed7110f3ccb2e8c6a35c8a31dbcc.zip |
Adding upstream version 1:0.1.9998svn3589+dfsg.upstream/1%0.1.9998svn3589+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/sed/testsuite/eval.sed | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/sed/testsuite/eval.sed b/src/sed/testsuite/eval.sed new file mode 100644 index 0000000..5734786 --- /dev/null +++ b/src/sed/testsuite/eval.sed @@ -0,0 +1,46 @@ +1d + + #Try eval command + /cpu/!b2 + e../sed/sed 1q eval.in2 + +:2 +p +i--- +h + + #Try eval option + s,.* *cpu *,../sed/sed 1q eval.in2; echo "&",e + +:3 +p +g +i--- + + h + #Try eval option with print + s,.* *cpu.*,../sed/sed 1q eval.in2,ep + g + + +:4 +p +i--- + +$!d + +#Do some more tests +s/.*/Doing some more tests -----------------------/p +s,.*,../sed/sed 1q eval.in2,ep +i--- +s,.*,../sed/sed 1q eval.in2,pe +i--- +s,.*,../sed/sed 1q eval.in2, +h +e +p +g +i--- +s/^/echo /ep +i--- +s/^fubar$/echo wozthis/e |