This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

mc-wrapper.sh error if username contains spaces


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]