Skip to content

Commit 0686871

Browse files
committed
Was lowercaing RsT output...
typeset -l in ksh lowercases. In bash it localizes.
1 parent cd460df commit 0686871

3 files changed

Lines changed: 32 additions & 31 deletions

File tree

lib/hist.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,18 @@ _Dbg_history_parse() {
5454
# Handle ! form. May need to parse number out number and modifier
5555
case $_Dbg_cmd in
5656
\!\-${int_pat}:p )
57-
typeset -l -a word1
57+
typeset -a word1
5858
word1=($(_Dbg_split '!' $_Dbg_cmd))
59-
typeset -l -a word2
59+
typeset -a word2
6060
word2=($(_Dbg_split ':' ${word1[0]}))
61-
typeset -l -i num=_Dbg_hi+${word2[0]}
61+
typeset -i num=_Dbg_hi+${word2[0]}
6262
_Dbg_do_history_list $num $num
6363
history_num=-1
6464
;;
6565
[!]${int_pat}:p )
66-
typeset -l -a word1
66+
typeset -a word1
6767
word1=($(_Dbg_split '!' $_Dbg_cmd))
68-
typeset -l -a word2
68+
typeset -a word2
6969
word2=($(_Dbg_split ':' ${word1[0]}))
7070
_Dbg_do_history_list ${word2[0]} ${word2[0]}
7171
history_num=-1

lib/msg.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# -*- shell-script -*-
22
#
3-
# Copyright (C) 2008-2009, 2012, 2014 Rocky Bernstein rocky@gnu.org
3+
# Copyright (C) 2008-2009, 2012, 2014, 2019 Rocky Bernstein
4+
# rocky@gnu.org
45
#
56
# This program is free software; you can redistribute it and/or
67
# modify it under the terms of the GNU General Public License as
@@ -121,7 +122,7 @@ function _Dbg_printf_nocr {
121122
}
122123

123124
function _Dbg_msg_rst {
124-
typeset -l -r msg="$@"
125+
typeset -r msg="$@"
125126
if [[ -n $_Dbg_set_highlight ]] && (( _Dbg_working_term_highlight )) ; then
126127
set +xv
127128
typeset opts="--rst --width=$_Dbg_set_linewidth"

test/data/list.right

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,41 @@ x=22
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
1515
subsequent list command was issued with no intervening frame changing,
1616
then 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
2626
more generally when the alias ends in ">", rather than center lines
2727
around *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.
173173
Number 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

Comments
 (0)