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
* syntax/syntax.syntax: Fix highlighting for "gray".
[midnight-commander.git]
/
lib
/
mc.sh.in
blob
064717ccf0a014ab680d237b3b8c4367d19e746c
1
mc
()
2
{
3
mkdir
-p
$HOME
/
.mc
/
tmp
2
> /
dev
/
null
4
chmod
700
$HOME
/
.mc
/
tmp
5
MC
=
$HOME
/
.mc
/
tmp
/
mc-$$
6
@prefix@
/
bin
/
mc
-P
"$@"
>
"
$MC
"
7
cd
"`cat
$MC
`"
8
rm
-f
"
$MC
"
9
unset
MC
;
10
}
11
12
if
test -n
"
$BASH_VERSION
"
;
then
13
export -f
mc
14
fi