* lib/mc-wrapper.sh.in: Handle user names with spaces.

* lib/mc-wrapper.csh.in: Likewise.
This commit is contained in:
Leonard den Ottolander 2006-02-28 22:42:52 +00:00
parent 049352e884
commit 118b31fa91
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-02-28 Leonard den Ottolander <leonard den ottolander nl>
* mc-wrapper.sh.in: Handle user names with spaces.
* mc-wrapper.csh.in: Likewise.
2006-02-19 Nerijus Baliunas <nerijus@users.sourceforge.net>
* mc.ext.in: Open gimp in the background.

View File

@ -9,7 +9,7 @@ endif
@bindir@/mc -P "$MC_PWD_FILE" $*
if (-r "$MC_PWD_FILE") then
setenv MC_PWD "`cat $MC_PWD_FILE`"
setenv MC_PWD "`cat '$MC_PWD_FILE'`"
if ( -d "$MC_PWD" ) then
cd "$MC_PWD"
endif

View File

@ -3,7 +3,7 @@ MC_PWD_FILE="${TMPDIR-/tmp}/mc-$MC_USER/mc.pwd.$$"
@bindir@/mc -P "$MC_PWD_FILE" "$@"
if test -r "$MC_PWD_FILE"; then
MC_PWD="`cat $MC_PWD_FILE`"
MC_PWD="$(cat "$MC_PWD_FILE")"
if test -n "$MC_PWD" && test -d "$MC_PWD"; then
cd "$MC_PWD"
fi