-
Hello,
I have a problem with the bash recall line feature when used with Midnight commander in the background
and I was wondering if someone already found a solution or an explanation about what is going on:
The setup: start a teminal emulator shell, start Midnight Commander (mc), press ctrl-o to hide mc,
type a shell command like "ls", press ctrl-o again (to get the mc back), navigate into a folder and back
to exercise midnight commander (use arrows to go over a folder like ".adobe", press enter to go into it
and enter again to go back to the previous level), press ctrl-o to hide mc, use the up arrow to get
the previous command typed (should be "ls") but instead some garbage shows up like:
cd "`printf "%b" '\0057home\0057knoppix'`"
and if you keep pressing the "up" arrows key you will get some more garbage until you eventually
get the expected last command typed (ls). This problem already appeared in previous versions
of Knoppix and is very annoying (at least to me) as I use this feature a lot.
Please respond if you have a solution or can provide some clue about how to fix it.
Thanks,
Gilles
-
Senior Member
registered user
Hi, Gilles.
My guess is that mc has a small syntax error in the line you call garbage.
There are lots of possibilities, for one thing; and for another, the
syntax doesn't agree with what man printf would lead you to expect.
/usr/bin/mc is binary, so I guess you'd have to look at the source to see
if changing \0057 to \u0057 in two places there solves this problem.
If it does, there are probably more similar errors, maybe due to some
change in conventions.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

NEC PC-8201A vintage computer
$600.00

Vintage Retro Cyrix 6x86 133mhz 32mb RAM Floppy Combo
$299.00

Vintage HP 21MX 1000 M-Series Minicomputer Chassis Backplane Parts AS-IS
$228.19

Vintage Memorex Telex 122-Key AT Terminal Keyboard 96550264
$100.00

Vintage AGP GPU Lot: HP NVIDIA GeForce4 MX 440 & ATI Rage 128 Pro Untested AS-IS
$22.00

Vintage IBM OS/2 version Standard Version 1.3 3.5" Diskettes SEALED
$199.00

Vintage Motherboard With Intel i386 1985 Processors Ram Unsure Of Model
$75.00

Original Vintage Old Style STANDARD Black CD Jewel Case (Heavy Duty) 90g Lot
$316.95

Vintage Sun Microsystems Type 5 Keyboard N860-8701-T010 Tested Working
$55.55

Vintage KanguruDisk Portable External Drive Module with Pouch - Rare Retro Drive
$114.88