[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NON-trivial regular expression problem (could not find on google)
From: |
Peter J. Acklam |
Subject: |
Re: NON-trivial regular expression problem (could not find on google) |
Date: |
20 Jan 2003 01:15:46 -0800 |
"Dr. Yuan Liu" <yliu@stemnet.nf.ca.remove_this> wrote:
> Bournish and Kornish shells all stick with the symbolic
> path, i.e., foo/bar/.. is always foo.
Take a look at the following -- it is an example of a case where
"foo/bar/.." and "foo" is not the same (ksh on Solaris 8):
/var/tmp $ mkdir -p foo/fee/fie/foe
/var/tmp $ ln -s fee/fie/foe foo/bar
/var/tmp $ ls foo
bar fee
/var/tmp $ ls foo/bar/..
foe
In this case, "foo/bar/.." is "foo/fee/fie/foe/.." which is
"foo/fee/fie" which is *not* the same as "foo". The reason
is simply that "foo/bar/.." resolves to a different directory
than "foo". So, you can *not* assume "foo/bar/.." is "foo".
Peter
- Re: NON-trivial regular expression problem (could not find on google), (continued)
- Re: NON-trivial regular expression problem (could not find on google), Harry Putnam, 2003/01/18
- Re: NON-trivial regular expression problem (could not find on google), Kai Großjohann, 2003/01/18
- Re: NON-trivial regular expression problem (could not find on google), AW, 2003/01/18
- Re: NON-trivial regular expression problem (could not find on google), Edi Weitz, 2003/01/18
- Re: NON-trivial regular expression problem (could not find on google), Larry Clapp, 2003/01/18
- Re: NON-trivial regular expression problem (could not find on google), Dr. Yuan Liu, 2003/01/18
- Re: NON-trivial regular expression problem (could not find on google), John W. Krahn, 2003/01/18
- Re: NON-trivial regular expression problem (could not find on google), William Park, 2003/01/18
- Re: NON-trivial regular expression problem (could not find on google), Peter J. Acklam, 2003/01/19
- Re: NON-trivial regular expression problem (could not find on google), Bruce Barnett, 2003/01/24