mc/lib/mc.sh.in

19 lines
343 B
Bash
Raw Normal View History

1998-02-27 07:54:42 +03:00
mc ()
{
2002-10-31 08:36:54 +03:00
MC_PWD_FILE="${TMPDIR-/tmp}/mc-$USER/mc.pwd.$$"
@prefix@/bin/mc -P "$MC_PWD_FILE" "$@"
if test -r "$MC_PWD_FILE"; then
MC_PWD="`cat $MC_PWD_FILE`"
if test -n "$MC_PWD" && test -d "$MC_PWD"; then
cd "$MC_PWD"
fi
fi
rm -f "$MC_PWD_FILE"
unset MC_PWD
unset MC_PWD_FILE
1998-02-27 07:54:42 +03:00
}
if test -n "$BASH_VERSION"; then
export -f mc
fi