mc-4.6.1 patch subshell.c

Oleg Borodin ziggi at inbox.ru
Thu Jan 25 21:25:53 UTC 2007


Goog day!

I use GNU bash, version 3.2.9(1)-release
Chdir to '/aaa/lalala_' produse "Connot chanche directory: /aaa/lalala" - subsh\
ell-bash not understand 'cd lalala\137', have 'cd lalala\0137'

This patch may by resolve this for any version bash:

--- ./src/subshell.c.orig       Tue Jun  7 12:19:19 2005
+++ ./src/subshell.c    Thu Jan 25 22:49:50 2007
@@ -728,7 +730,7 @@
            if (isalpha ((unsigned char) *s)) {
                *d++ = (unsigned char) *s;
            } else {
-               sprintf (d, "\\%03o", (unsigned char) *s);
+               sprintf (d, "\\x%02x", (unsigned char) *s);
                d += 4;
            }
        }

-- 

Borodin Oleg
Kaliningrad, Russia
ziggi at inbox.ru




More information about the mc-devel mailing list