mirror of https://github.com/MidnightCommander/mc
Ticket #3586: mcedit - fix "Lower case selection" command in User Menu
Fix bug #3586 reported by rimf (plus minor tweak remove unneeded cat/pipe command) Signed-off-by: Andreas Mohr <and@gmx.li> Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
parent
9aeacda0d9
commit
7da330ce77
|
@ -471,13 +471,13 @@ o Open bash to next free console
|
|||
u Upper case selection
|
||||
TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/up.XXXXXX` || exit 1
|
||||
cat %b > $TMPFILE
|
||||
cat $TMPFILE| sed 's/\(.*\)/\U\1/' >%b
|
||||
sed 's/\(.*\)/\U\1/' $TMPFILE >%b
|
||||
rm -f $TMPFILE
|
||||
|
||||
l Lower case selection
|
||||
TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/up.XXXXXX` || exit 1
|
||||
cat %b > $TMPFILE
|
||||
cat $TMPFILE| sed 's/\(.*\)/\U\1/' >%b
|
||||
sed 's/\(.*\)/\L\1/' $TMPFILE >%b
|
||||
rm -f $TMPFILE
|
||||
|
||||
#-------------------------- End of common section -----------------------------
|
||||
|
|
Loading…
Reference in New Issue