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
|
(exam.sh:3):
unsetopt ksharrays
+# Examine with blanks
+examine
+examine
+# Examine constant expressions
+examine 1+30
31
+examine '2*4+10/2'
13
+examine '(2*4+10)/2'
9
+examine "1<<4"
16
+# Set up some values
+continue 10
One-time breakpoint 1 set in file exam.sh, line 10.
Breakpoint 1 hit.
(exam.sh:10):
unset string
+examine ary
typeset -ar ary
ary=(10 100 100)
+examine string
typeset string='a string'
+examine xstring
typeset -x xstring='an exported string'
+examine fn
fn () {
print "a function"
}
+examine z
typeset z=1
+examine $ary[1]
10
+examine $ary[1]+3
13
+quit
|