From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Yuan Liu Newsgroups: gmane.emacs.help Subject: Re: NON-trivial regular expression problem (could not find on google) Date: Fri, 24 Jan 2003 18:56:34 GMT Organization: http://www.stemnet.nf.ca/~yliu/sciences.html#physics Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3E318DFC.30709@stemnet.nf.ca.remove_this> References: <7606630f.0301181219.60384da2@posting.google.com> <3E2AFD60.4090405@stemnet.nf.ca.remove_this> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1043435547 9122 80.91.224.249 (24 Jan 2003 19:12:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 24 Jan 2003 19:12:27 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18c94D-0001fv-00 for ; Fri, 24 Jan 2003 20:00:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18c94S-0008SF-03 for gnu-help-gnu-emacs@m.gmane.org; Fri, 24 Jan 2003 14:00:56 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn12feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi.com!sccrnsc03.POSTED!not-for-mail User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en Original-Newsgroups: comp.lang.lisp,comp.lang.awk,comp.unix.shell,gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: 12.234.28.162 Original-X-Complaints-To: abuse@attbi.com Original-X-Trace: sccrnsc03 1043434594 12.234.28.162 (Fri, 24 Jan 2003 18:56:34 GMT) Original-NNTP-Posting-Date: Fri, 24 Jan 2003 18:56:34 GMT Original-Xref: shelby.stanford.edu comp.lang.lisp:103374 comp.lang.awk:24555 comp.unix.shell:140439 gnu.emacs.help:109422 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5944 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5944 Peter J. Acklam wrote: > "Dr. Yuan Liu" 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 Interesting. ls and pwd, cd behave differently. Thanks for pointing out. Yuan Liu > 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