Ticket #3355: mc-3355-wrapper-cd.patch
File mc-3355-wrapper-cd.patch, 455 bytes (added by egmont, 10 years ago) |
---|
-
contrib/mc-wrapper.sh.in
diff --git a/contrib/mc-wrapper.sh.in b/contrib/mc-wrapper.sh.in index 8badfb8..dd5edd9 100644
a b MC_PWD_FILE="${TMPDIR-/tmp}/mc-$MC_USER/mc.pwd.$$" 4 4 5 5 if test -r "$MC_PWD_FILE"; then 6 6 MC_PWD="`cat "$MC_PWD_FILE"`" 7 if test -n "$MC_PWD" && test -d "$MC_PWD"; then7 if test -n "$MC_PWD" && test "$MC_PWD" != "$PWD" && test -d "$MC_PWD"; then 8 8 cd "$MC_PWD" 9 9 fi 10 10 unset MC_PWD