File: bug-args.cmd

package info (click to toggle)
zshdb 0.05%2Bgit20101031-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,104 kB
  • ctags: 209
  • sloc: sh: 5,563; makefile: 337
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