27 Dec
2002
27 Dec
'02
12:49
zentara <zentara@zentara.net> writes:
I'm having trouble with my bash hash table again. I have mc in /usr/local/bin/mc and everytime I try to run mc, I get -bash "No /usr/bin/mc".
On my system, mc is a bash function: $ typeset -f ... mc () { mkdir -p $HOME/.mc/tmp 2>/dev/null; chmod 700 $HOME/.mc/tmp; MC=$HOME/.mc/tmp/mc-$$; /usr/bin/mc -P "$@" >"$MC"; cd "`cat $MC`"; rm -f "$MC"; unset MC } Use "unset mc" to delete the function. -- Alexandr.Malusek@imv.liu.se