55+help l
66**list**[**>**] [*location*|**.**|**-**] [*num*]
77
8- list source code.
8+ List source code.
99
10- without arguments, print lines centered around the current line. if
10+ Without arguments, print lines centered around the current line. If
1111*location* is given, that number of lines is shown.
1212
13- if this is the first list command issued since the debugger command
14- loop was entered, then the current line is the current frame. if a
13+ If this is the first list command issued since the debugger command
14+ loop was entered, then the current line is the current frame. If a
1515subsequent list command was issued with no intervening frame changing,
1616then that is start the line after we last one previously shown.
1717
18- a *location* is either:
18+ A *location* is either:
1919
2020* a number, e.g. 5,
2121* a filename, colon, and a number, e.g. `/etc/profile:5`,
2222* a "." for the current line number
2323* a "-" for the lines before the current linenumber
2424
25- by default aliases **l>** and **list>** are set to list. in this case and
25+ By default aliases **l>** and **list>** are set to list. In this case and
2626more generally when the alias ends in ">", rather than center lines
2727around *location* that will be used as the starting point.
2828
29- examples :
29+ Examples :
3030---------
3131
32- list 5 # list starting from line 5
33- list 4+1 # same as above.
34- list /etc/profile:5 # list starting from line 5 of /etc/profile
35- list /etc/profile 5 # same as above.
32+ list 5 # List starting from line 5
33+ list 4+1 # Same as above.
34+ list /etc/profile:5 # List starting from line 5 of /etc/profile
35+ list /etc/profile 5 # Same as above.
3636 list /etc/profile 5 6 # list lines 5 and 6 of /etc/profile
37- list /etc/profile 5 2 # same as above, since 2 < 5.
38- list profile:5 2 # list two lines starting from line 5 of profile
39- list . # list lines centered from where we currently are stopped
40- list - # list lines previous to those just shown
37+ list /etc/profile 5 2 # Same as above, since 2 < 5.
38+ list profile:5 2 # List two lines starting from line 5 of profile
39+ list . # List lines centered from where we currently are stopped
40+ list - # List lines previous to those just shown
4141
42- see also:
42+ See also:
4343---------
4444
4545**set listsize** or **show listsize** to see or set the value.
@@ -51,7 +51,7 @@ Aliases for list: l, l>, list>
5151 17: fn3() {
5252 18: name="fn3"
5353 19: x=$1
54- 20: }
54+ 20: }
5555 21:
5656 22: => x=22
5757 23: y=23
@@ -79,7 +79,7 @@ Aliases for list: l, l>, list>
7979 17: fn3() {
8080 18: name="fn3"
8181 19: x=$1
82- 20: }
82+ 20: }
8383 21:
8484 22: => x=22
8585 23: y=23
@@ -94,7 +94,7 @@ Aliases for list: l, l>, list>
9494 6: echo "fn1 here"
9595 7: x=5
9696 8: fn3
97- 9: }
97+ 9: }
9898 10:
9999 11: fn2() {
100100+#
@@ -113,15 +113,15 @@ Aliases for list: l, l>, list>
113113 6: echo "fn1 here"
114114 7: x=5
115115 8: fn3
116- 9: }
116+ 9: }
117117 10:
118118+list ../example/dbg-test1.sh:20
119- 15: }
119+ 15: }
120120 16:
121121 17: fn3() {
122122 18: name="fn3"
123123 19: x=$1
124- 20: }
124+ 20: }
125125 21:
126126 22: => x=22
127127 23: y=23
@@ -160,7 +160,7 @@ Number of source lines kshdb will list by default is 10.
160160+### Setting listsize to 3...
161161+set listsize 3
162162+list 10
163- 9: }
163+ 9: }
164164 10:
165165 11: fn2() {
166166+### Window command...
@@ -173,7 +173,7 @@ Number of source lines kshdb will list by default is 10.
173173Number of source lines kshdb will list by default is 4.
174174+list 10
175175 8: fn3
176- 9: }
176+ 9: }
177177 10:
178178 11: fn2() {
179179+### Window command...
0 commit comments