On Friday 27 December 2002 12:49, Alexandr Malusek wrote:
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 }
As far as I can see, this means that when you quit from mc it changes the pwd of the calling shell to whatever mc was last looking at. Now why would anyone want to do that? Pam R -- Have a good turn-of-the-year-celebration-of-your-choice. Linux StepbyStep: http://www.linux-sxs.org/stepbystep.html