File: bug-args.right

package info (click to toggle)
zshdb 0.04%2Bgit20100102-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,924 kB
  • ctags: 241
  • sloc: sh: 5,097; lisp: 885; makefile: 306
file content (29 lines) | stat: -rw-r--r-- 421 bytes parent folder | download | duplicates (3)
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:2):
echo First parm is: $1
+# Debugger test to see that parameter handling of $1, $2, etc is correct.
+print $#
0
+print $5

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

+quit