repo.or.cz
/
midnight-commander.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updated manual, added -e switch description.
[midnight-commander.git]
/
lib
/
mc-wrapper.sh.in
blob
b1fd5865be271282681743a48a02a204e57accc4
1
MC_PWD_FILE
=
"
${TMPDIR-/tmp}
/mc-
$USER
/mc.pwd.$$"
2
@bindir@
/
mc
-P
"
$MC_PWD_FILE
"
"$@"
3
4
if
test -r
"
$MC_PWD_FILE
"
;
then
5
MC_PWD
=
"`cat
$MC_PWD_FILE
`"
6
if
test -n
"
$MC_PWD
"
&&
test -d
"
$MC_PWD
"
;
then
7
cd
"
$MC_PWD
"
8
fi
9
unset
MC_PWD
10
fi
11
12
rm
-f
"
$MC_PWD_FILE
"
13
unset
MC_PWD_FILE