Bug#458403: mc: Internal 'cd' cannot go to dir with spaces, inserted by ^X^P
Package: mc
Version: 1:4.6.1-8
Severity: important
Hi,
mc cannot go to the directory which is pasted to command line by ^XP or
^X^P shortcuts (which paste current directory).
How to reproduce:
cd /tmp; mkdir '1 1'
- then in mc go there, and type 'cd ^XP', it will write:
cd /tmp/1\ 1/
- then mc writes red error:
'
Cannot chdir to "/tmp/1\ 1/"
No such file or directory (2)
'
But the command in normal shell works:
cd /tmp/1\ 1/;echo $?
0
I tried write it in mc without the escape \ character and it works:
cd /tmp/1 1
The mc internal 'cd' command, used under the blue pannels, is not unescaping '\' character correctly. It seems that the shell evaluation is not working correctly. It is not behaving as standard unix commandline.
Could you fix it?
Thanks.
Lada
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.11ac2-050313
Locale: LANG=czech, LC_CTYPE=czech (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/bash
Versions of packages mc depends on:
ii libc6 2.7-5 GNU C Library: Shared libraries
ii libglib2.0-0 2.14.4-2 The GLib library of C routines
ii libgpmg1 1.19.6-25 General Purpose Mouse - shared lib
ii libslang2 2.1.3-2 The S-Lang programming library - r
mc recommends no packages.
-- debconf-show failed
Reply to: