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
(file_op_context_create_ui): apply callback to the "Abort" button
[midnight-commander.git]
/
contrib
/
mc-wrapper.sh.in
blob
3905be480079982a39c4892b0bc49ed986778354
1
MC_USER
=
`whoami`
2
MC_PWD_FILE
=
"
${TMPDIR-/tmp}
/mc-
$MC_USER
/mc.pwd.$$"
3
@bindir@
/
mc
-P
"
$MC_PWD_FILE
"
"$@"
4
5
if
test -r
"
$MC_PWD_FILE
"
;
then
6
MC_PWD
=
"`cat "
$MC_PWD_FILE
"`"
7
if
test -n
"
$MC_PWD
"
&&
test
"
$MC_PWD
"
!=
"
$PWD
"
&&
test -d
"
$MC_PWD
"
;
then
8
cd
"
$MC_PWD
"
9
fi
10
unset
MC_PWD
11
fi
12
13
rm
-f
"
$MC_PWD_FILE
"
14
unset
MC_PWD_FILE
15
unset
MC_USER