summaryrefslogtreecommitdiff
path: root/testsuite/eval.sed
diff options
context:
space:
mode:
authorKim Kibum <kb0929.kim@samsung.com>2012-05-21 17:49:19 +0900
committerKim Kibum <kb0929.kim@samsung.com>2012-05-21 17:49:19 +0900
commite08857e3903959f080aa407da646feef9273162a (patch)
treedc8dac0ef9c8c01b2ebe7f5744467f8b01a0d503 /testsuite/eval.sed
parent0e5b9c4adf619450a7aea27e6bf8d8c753625b1f (diff)
downloadsed-e08857e3903959f080aa407da646feef9273162a.tar.gz
sed-e08857e3903959f080aa407da646feef9273162a.tar.bz2
sed-e08857e3903959f080aa407da646feef9273162a.zip
Upload Tizen:Base source
Diffstat (limited to 'testsuite/eval.sed')
-rw-r--r--testsuite/eval.sed46
1 files changed, 46 insertions, 0 deletions
diff --git a/testsuite/eval.sed b/testsuite/eval.sed
new file mode 100644
index 0000000..5734786
--- /dev/null
+++ b/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