File: command.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 (47 lines) | stat: -rw-r--r-- 884 bytes parent folder | download | duplicates (2)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
set trace-commands on
# Debugger test of 'command' command
#
# Try to set command when there is none.
command 1
#
# Now a command for a real breakpoint
break 23
command 1
x x
end
#
##############################
# Should see value of x below
# from the command statment
break 25
continue
#
#############################
# Test of a changing
# command statement. First
# The setup.
##############################
command 2
print x is now $x
end
continue
####################################
# Now we'll change the it
####################################
command 2
print "testing overwriting commands"
end
continue
####################################
# Should have seen the testing message
# above, not x. 
## FIXME: theres a weird bug 
## in evaluating expressions like $i
# Now let's remove the command 
# altogether
####################################
command 2
end
continue
quit