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: Sun, 19 Jan 2003 13:17:20 +0100 Organization: Private Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <7606630f.0301181219.60384da2@posting.google.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1042978848 16546 80.91.224.249 (19 Jan 2003 12:20:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 19 Jan 2003 12:20:48 +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 18aERS-0004IV-00 for ; Sun, 19 Jan 2003 13:20:46 +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 18aESC-0007C7-00 for gnu-help-gnu-emacs@m.gmane.org; Sun, 19 Jan 2003 07:21:32 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!newspeer.monmouth.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!newsfeed1.e.nsc.no!nsc.no!nextra.com!news4.e.nsc.no.POSTED!53ab2750!not-for-mail Original-Newsgroups: comp.lang.lisp,comp.lang.awk,comp.unix.shell,gnu.emacs.help User-Agent: Gnus/5.090013 (Oort Gnus v0.13) Emacs/21.2 (i386-msvc-nt5.0.2195) Cancel-Lock: sha1:NErLgremPe04jeEj0ozY7FOT4PU= Original-Lines: 21 Original-NNTP-Posting-Host: 130.67.215.116 Original-X-Complaints-To: news-abuse@telenor.net Original-NNTP-Posting-Date: Sun, 19 Jan 2003 13:16:22 MET Original-X-Trace: news4.ulv.nextra.no 1042978582 130.67.215.116 Original-Xref: shelby.stanford.edu comp.lang.lisp:103199 comp.lang.awk:24446 comp.unix.shell:139900 gnu.emacs.help:109185 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:5710 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5710 democrat@india.com (Instant Democracy) wrote: > The task is to eliminate patterns such as > DIRNAME/../ > from the path because they are redundant. Are they really? If DIRNAME is a symlink, then there is no guarantee that these two point to the same place: foo/bar/.. foo You *must* ensure that DIRNAME is not a symlink before you simplify the pathnames like this. Peter -- I wish dialog boxes had a butten saying "Whatever". I hate being forced to answer "Yes" or "No" to a question I have no opinion on whatsoever. There ought to be a button matching my indifference.