summaryrefslogtreecommitdiffstats
path: root/src/sed/testsuite/eval.sed
blob: 5734786bb634aba6ed99ef065ad759eb07147ff2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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