1
1
mc/lib/mc.sh.in
Pavel Roskin 15535f33a2 * lib/mc.sh.in: Use $HOME instead of '~' because the tilde
is not expanded in all shells.
* doc/mc.sgml: Updated the example script to reflect the above
changes.
* doc/mc.in.1: Likewise.
2000-09-21 21:17:28 +00:00

11 строки
180 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 "$MC"
unset MC;
}