File: bug-args.right

package info (click to toggle)
bashdb 4.0.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,820 kB
  • ctags: 942
  • sloc: sh: 10,581; lisp: 885; makefile: 449; ansic: 325
file content (29 lines) | stat: -rw-r--r-- 398 bytes parent folder | download
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
(bug-args.sh:3):
3:	echo First parm is: $1
+# Debugger test to see that parameter handling of $1, $2, etc is correct.
+p $#
0
+p $5

+step 2
First parm is:
(bug-args.sh:5):
5:	shift 2
+# There should now be 5 args set and $5 should have a value
+p $#
5
+p $3
c
+p $5
e
+step 
(bug-args.sh:7):
7:	exit 0
+# There should now be 3 args set and $5 should not have a value
+p $#
3
+p $3
e
+p $5

+quit