[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug found
From: |
Jehsom |
Subject: |
Re: Bug found |
Date: |
14 Nov 2000 15:14:48 GMT |
User-agent: |
tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (Linux/2.2.17 (i686)) |
Andreas Adamcik <e9126482@student.tuwien.ac.at> wrote:
> find . -name x | xargs cd
> doesn't change to the found directory
That's because the 'cd' that xargs is using is an executable, not the
bash builtin. Don't ask me why there is a cd executable; it's completely
worthless, as no child process can modify the environment (including the
current working directory) of its parent process. So you need to find an-
other way of changing directories.
Moshe
--
jehsom@ angband.org cc.gatech.edu polter.net shaftnet.org nullity.dhs.org
wreck.org bellsouth.net resnet.gatech.edu burdell.org yo.dhs.org gooning.org
usa.net togetherweb.com spoonless.net; gte741e mj116 @prism.gatech.edu;
jacobsonconsulting@ usa.net; ICQ 1900670