[prev in list] [next in list] [prev in thread] [next in thread] 

List:       suse-linux-e
Subject:    Re: [SLE] bash hash hell
From:       Pam R <pamroberts () blueyonder ! co ! uk>
Date:       2002-12-28 13:34:12
[Download RAW message or body]

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


--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@suse.com
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@suse.com


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic