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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
|
set trace-commands on
# Test of miscellaneous commands:
# 'source', 'info args', 'show args', 'show warranty', 'show copying', etc.
#### source command...
source prof1.cmd
source prof2.cmd
#########################################
#### Test that ARGs are correct...
print "_Dbg_arg#: ${#_Dbg_arg[@]}"
print "\\$1: $1"
print "\\$2: $2"
#########################################
#### Testing script args...
info args
#########################################
#### Invalid commands...
show badcommand
another-bad-command
tty
#### *** GNU things...
show warranty
info warranty
show copying
#### help commands...
help
help set
help set foo
help set ar
help set annotate
help set listsize
help set prompt
help set editing
help tty
help info
info
show
#### and show...
show args
set args now is the time
show args
set editing off
set editing fooo
show editing
set editing
show editing
set misspelled 40
set listsize 40
set listsize bad
set annotate bad
set annotate 6
show annotate
set annotate 1
show listsize
show annotate
#########################
#### Test 'show commands'...
show commands
show commands +
show commands -5
show commands 12
#### history...
H
H 5
H 5 3
hi 11
!11
!19:p
!-3:p
!-2
! 2
H -2
H foo
H 100000
history -2
history 10000
#### pwd/cd commands...
pwd
cd .
##########################
#### Test 'prompt' and 'tty' ...
set prompt bashdb${_Dbg_greater}$_Dbg_hi${_Dbg_less}$_Dbg_space
show prompt
tty /tmp/misc-output.check
l
#########################
#### Test 'file' command...
file misc.cmd
#### info variables (V) command...
V dq*
# On OS X there is some problem in doing the above and below commands
# in succession. Further investigation is needed to fix this.
# Until then..
## info variables dq*
quit
|