mc-wrapper.sh error if username contains spaces
Dominique Brazziel
dbrazziel@snet.net
Wed Mar 22 08:04:00 GMT 2006
mc will not exit in the last directory browsed if the
username contains spaces. The following error
messages occur:
/tmp/mc-User Name/mc.pwd.2572
cat: /tmp/mc-User: No such file or directory
cat: Name/mc.pwd.2572: No such file or directory
ls on the /tmp directory under Xterm shows the
subdirectory as
mc-User\ Name/
while WinXP Explorer shows the directory correctly as
/tmp/User Name
Changing to the directory and then issuing 'pwd' shows
/tmp/User Name.
The mc-wrapper.sh, but the following change fixes the
problem:
Change
MC_PWD="`cat $MC_PWD_FILE`"
to
MC_PWD="`cat "$MC_PWD_FILE"`"
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/
More information about the Cygwin-xfree
mailing list