File: bug-args.cmd

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 (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