From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: pjacklam@online.no (Peter J. Acklam) Newsgroups: gmane.emacs.help Subject: Re: NON-trivial regular expression problem (could not find on google) Date: 20 Jan 2003 01:15:46 -0800 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <7606630f.0301181219.60384da2@posting.google.com> <3E2AFD60.4090405@stemnet.nf.ca.remove_this> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1043054496 7643 80.91.224.249 (20 Jan 2003 09:21:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 20 Jan 2003 09:21:36 +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 18aY7a-0001z1-00 for ; Mon, 20 Jan 2003 10:21:35 +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 18aY6b-0007ZY-04 for gnu-help-gnu-emacs@m.gmane.org; Mon, 20 Jan 2003 04:20:33 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: comp.lang.lisp,comp.lang.awk,comp.unix.shell,gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 193.215.255.181 Original-X-Trace: posting.google.com 1043054146 29181 127.0.0.1 (20 Jan 2003 09:15:46 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 20 Jan 2003 09:15:46 GMT Original-Xref: shelby.stanford.edu comp.lang.lisp:103232 comp.lang.awk:24463 comp.unix.shell:139948 gnu.emacs.help:109213 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:5737 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5737 "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 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