help-gnu-emacs
[Top][All Lists]
Advanced

[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" <address@hidden> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]