File: bug-args.cmd

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 (16 lines) | stat: -rw-r--r-- 278 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
set trace-commands on
# Debugger test to see that parameter handling of $1, $2, etc is correct.
p $#
p $5
step 2
# There should now be 5 args set and $5 should have a value
p $#
p $3
p $5
step
# There should now be 3 args set and $5 should not have a value
p $#
p $3
p $5
quit