This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
mc-wrapper.sh error if username contains spaces
- From: Dominique Brazziel <dbrazziel at snet dot net>
- To: cygwin-xfree at cygwin dot com
- Date: Wed, 22 Mar 2006 00:04:30 -0800 (PST)
- Subject: mc-wrapper.sh error if username contains spaces
- Reply-to: cygwin-xfree at cygwin dot com
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/