blob: c0b29000200ba3f570dd64573ad0262d5f5b20b4 (
plain)
1 See http://mail.gnome.org/archives/mc-devel/2006-October/msg00025.html
2
3 diff -Nru mc-4.6.1.orig/src/subshell.c mc-4.6.1/src/subshell.c
4 --- mc-4.6.1.orig/src/subshell.c 2006-11-21 08:13:35.498257460 +0100
5 +++ mc-4.6.1/src/subshell.c 2006-11-21 08:14:10.971977460 +0100
6 @@ -718,29 +718,13 @@
7 memcpy (d, cmd_start, len);
8 d += len;
9
10 - /*
11 - * Print every character in octal format with the leading backslash.
12 - * tcsh and zsh may require 4-digit octals, bash < 2.05b doesn't like them.
13 - */
14 - if (subshell_type == BASH) {
15 for (; *s; s++) {
16 - /* Must quote numbers, so that they are not glued to octals */
17 if (isalpha ((unsigned char) *s)) {
18 *d++ = (unsigned char) *s;
19 } else {
20 - sprintf (d, "\\%03o", (unsigned char) *s);
21 - d += 4;
22 - }
23 - }
24 - } else {
25 - for (; *s; s++) {
26 - if (isalnum ((unsigned char) *s)) {
27 - *d++ = (unsigned char) *s;
28 - } else {
29 sprintf (d, "\\0%03o", (unsigned char) *s);
30 d += 5;
31 }
32 - }
33 }
34
35 memcpy (d, common_end, sizeof (common_end));
|