File: next.right

package info (click to toggle)
zshdb 0.05%2Bgit20101031-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,104 kB
  • sloc: sh: 5,563; makefile: 337
file content (99 lines) | stat: -rw-r--r-- 1,661 bytes parent folder | download | duplicates (2)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
(nexting.sh:3):
p () { print ${funcfiletrace[0]##*/} print '===' }
+set basename on
Show short filenames (the basename) in debug output is on.
+# Make sure autostep is off for next text
+set force off
Show stepping forces a new line is off.
+show force
Show stepping forces a new line is off.
+next 
(nexting.sh:4):
setopt ksharrays
+where 1
->0 in file `nexting.sh' at line 4
+next 
(nexting.sh:5):
p
+where 1
->0 in file `nexting.sh' at line 5
+# Test that next+ skips multiple statements
+next+ 
nexting.sh:5
===
(nexting.sh:6):
p
+where 1
->0 in file `nexting.sh' at line 6
+# Same thing - but should stop at 2nd statement in line
+next 
nexting.sh:6
===
(nexting.sh:6):
x=6
+where 1
->0 in file `nexting.sh' at line 6
+next 
(nexting.sh:7):
p
+where 1
->0 in file `nexting.sh' at line 7
+# Now check with set force on
+set force on
Show stepping forces a new line is on.
+show force
Show stepping forces a new line is on.
+next 
nexting.sh:7
===
(nexting.sh:8):
p
+where 1
->0 in file `nexting.sh' at line 8
+# Override force
+next- 
nexting.sh:8
===
(nexting.sh:8):
x=8
+where 1
->0 in file `nexting.sh' at line 8
+next- 
(nexting.sh:9):
p
+where 1
->0 in file `nexting.sh' at line 9
+# A null command should use the last next
+next- 
nexting.sh:9
===
(nexting.sh:9):
x=9
+where 1
->0 in file `nexting.sh' at line 9
+next- 
(nexting.sh:10):
p
+next 
nexting.sh:10
===
(nexting.sh:11):
p
+where 1
->0 in file `nexting.sh' at line 11
+# Try a null command the other way
+next+ 
nexting.sh:11
===
(nexting.sh:12):
p
+where 1
->0 in file `nexting.sh' at line 12
+next+ 
nexting.sh:12
===
(nexting.sh:13):
p
+where 1
->0 in file `nexting.sh' at line 13
+quit