| To: | Geoff Clare <yyy@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: cd, relative paths, and PATH_MAX |
| From: | Andries Brouwer <yyyyyyyyyyyyyyy@xxxxxx> |
| Date: | Wed, 12 May 2004 11:09:02 +0200 |
| Cc: | yyyyyyyyyyyyyy@xxxxxxxxxxxxx |
| References: | <FB15E670DA55D51185350008C786514A0F90E643@sottexch1.cognos.com> <20040511091021.GA15317@squonk> <20040511093521.GA6001@apps.cwi.nl> <20040511095541.GA17249@squonk> <20040511123406.GA4597@apps.cwi.nl> <20040511134927.GA24666@squonk> |
On Tue, May 11, 2004 at 02:49:27PM +0100, Geoff Clare wrote: > > What sometimes happens is that some directory lower in the tree > > gets renamed. So I do not touch PWD, and the inode that is my > > current working directory does not change, but PWD no longer > > is a pathname that points to it. > > Okay, I see the problem now. > > The simplest fix ... > ... A more elegant fix might be not to convert to an > absolute path in the first place when -P is in effect. I.e. with -P, > step 6 would set curpath to the operand and step 9 would be skipped. > > I'm inclined to go for the more elegant one. I am completely happy with this suggestion. Andries |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | comments on rdvk (was Re: Call reminder May 13), Andrew Josey |
|---|---|
| Next by Date: | Re: cd, relative paths, and PATH_MAX, Geoff Clare |
| Previous by Thread: | Re: cd, relative paths, and PATH_MAX, Geoff Clare |
| Next by Thread: | Re: cd, relative paths, and PATH_MAX, Chet Ramey |
| Indexes: | [Date] [Thread] [All Lists] |