File: bug-args.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 (29 lines) | stat: -rw-r--r-- 405 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 $#
1
+p $5

+step 2
First parm is: --help
(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