mc/lib/mc.sh.in
Pavel Roskin 3e4bac0140 * lib/mc.sh.in: Use "rm -f" to delete temporary files. Use
"export -f" to have mc() exported.
        * doc/mc.1.in: Changed description of the "-P" option to
        avoid inclusion of mc.sh and mc.csh into the manual.
        Corrected paths of mc.hlp, mc.no_proxy and ~/mc/Tree.
2000-09-30 16:54:01 +00:00

13 lines
197 B
Bash

mc ()
{
mkdir -p $HOME/.mc/tmp 2> /dev/null
chmod 700 $HOME/.mc/tmp
MC=$HOME/.mc/tmp/mc-$$
@prefix@/bin/mc -P "$@" > "$MC"
cd "`cat $MC`"
rm -f "$MC"
unset MC;
}
export -f mc