On Sun, 19 Feb 2017 05:22:44 -0800
Mike Wright <nob...@nospam.hostisimo.com> wrote:

> Hi all,
> 
> My brain cell ran away from home.  I have an incredibly simple script 
> that doesn't do what I expect.  I use "mkdir DIR; cd DIR" a lot so I'm 
> trying to put it in a script: "~/bin/mdcd".
> 
> After checking that $1 exists:
> 
> dir="$1"
> mkdir -p "$dir"
> cd "$dir"   <------ never executes
> 
> The directory is created so there is no error there.
> 
> Huh? Insight anyone?
> 
> Thanks,
> Mike Wright
> _______________________________________________
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org


Hi

not sure about that but I think the "cd" command executes indeed 
but it's valid only for the scripts' environment and not for the 
shell you started the script from.

If it's not so, may be my brain cells are gone too.

Ciao
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to