On Sat, 18 Jan 2003 14:13:16 +0100 (CET) "Carlos E. R." <robin1.listas@tiscali.es> wrote:
$ 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?
Now, this is very interesting: I wanted to disable that behaviour, but I never guessed it involved a bash function. Which file should I edit to change it permanently? It is a nuisance.
There is no man page for "typeset", by the way, and "--help" fails.
Go into /etc/profile.d and rename mc.sh to mc.sh.bak -- use Perl; #powerful programmable prestidigitation