File: skip.right

package info (click to toggle)
bashdb 3.1.0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 3,252 kB
  • ctags: 117
  • sloc: sh: 4,880; pascal: 3,186; lisp: 484; makefile: 315; ansic: 294
file content (66 lines) | stat: -rw-r--r-- 962 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
(skip.sh:22):
22:	x=22
+# Test skip command
+# 
+next 
(skip.sh:23):
23:	x=23
+p "x is $x"
x is 22
+p "** Try a skip command..."
** Try a skip command...
+skip 
(skip.sh:24):
24:	for i in 1 ; do
+p "x is still $x"
x is still 22
+p "** Try skipping over a for loop..."
** Try skipping over a for loop...
+skip 
(skip.sh:27):
27:	x=27
+p "x is still $x"
x is still 22
+p "** Try 'skip 3'..."
** Try 'skip 3'...
+skip 3
(skip.sh:30):
30:	fn1;
+p "x is still $x"
x is still 22
+skip 
(skip.sh:31):
31:	fn3 31
+p "x is still $x"
x is still 22
+skip 
(skip.sh:32):
32:	case x in 
+next 
(skip.sh:33):
33:	 * ) x = 33
+p "x is still $x"
x is still 22
+skip 
(skip.sh:35):
35:	[[ -z "x" ]] && x=35
+skip 
(skip.sh:35):
35:	[[ -z "x" ]] && x=35
x=35
+next 
(skip.sh:36):
36:	((x += 1))
+p "x is now $x"
x is now 35
+skip 
(skip.sh:37):
37:	source dbg-test1.sub
+p "x is still $x"
x is still 35
+skip 
(skip.sh:38):
38:	exit 0;
+p "*** quitting..."
*** quitting...
+quit