File: examine.right

package info (click to toggle)
zshdb 0.05%2Bgit20101031-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,104 kB
  • sloc: sh: 5,563; makefile: 337
file content (40 lines) | stat: -rw-r--r-- 583 bytes parent folder | download | duplicates (3)
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