From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8476 invoked by alias); 21 Jul 2016 03:49:34 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21786 Received: (qmail 4661 invoked from network); 21 Jul 2016 03:49:34 -0000 X-Qmail-Scanner-Diagnostics: from mail-pf0-f170.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.192.170):SA:0(0.0/5.0):. Processed in 0.120494 secs); 21 Jul 2016 03:49:34 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at brasslantern.com does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=B0bj+EY2mDgoNbyT00LrzIsPaQN5zGs1/WTrrGaTwOk=; b=b39sZyr2axMBUOQnG9/o7DxPBjNkvn9KG+fejw/Xr+MJKsgGm0U9uuYhr/lULFmh/v DLtlWUpjYlmISFgrV3FIMpKJgesW657Y0SEz+aDghWB/UsWu4yWB1flXbzatX4aSAAEr YgKTpq+vOdRQH7AYIaBxWLaf8Hhu+ET1GUq6k35sIc5Ctwe9z9exuEd3y+sxhtiitRWk YN8KjD8YWB12wVS4YeF7oJvU4u7CEW/yI2Pp452svo/TJMjaO78RsaCx79yFD3Kj8lRz nBHUg4OAgFcBD4kDCCXWvR5nidw2HaF2b//Q+ANx0CICxgd2uSv+Xs04rRaU3kjz4XNh NEHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=B0bj+EY2mDgoNbyT00LrzIsPaQN5zGs1/WTrrGaTwOk=; b=IMIR/QQO74BGiYZoQEIHfaMauFDOvdYudGGhFyNLy40pfg8DFVJsVxBWHxWZEFMmX5 7lE9SC/qewGqbvCpW0hT4o9hWY2OeMUVSO4PYiyBKyF8TNkWl5MDd1kNIN00WRSBz89E ttmDY+2fzfhUI9+R+DV61U2n+vRrFpFsJwATawFuJeTTCBKXx1t7Wk5Fu4GnFGNKlYZ/ SZOGQRX7FgxBSOXvraJhBtH2V92TaTtq3bYNqtuAA1pvhULFCtvXo2jwfYN6mokfXhVf Fth0UrxFva0Q756tmnXSZy1qU1vd13Z8PXJCNyP6QQxkbqYm0wVKmKeqP/BtJolIYKZU dgFw== X-Gm-Message-State: ALyK8tKdenMsSyUwgVl1nQat9WFbfyCwjUPIeWwgVleGF+u/3218n6FRf0u3fDy61xE7uQ== X-Received: by 10.98.17.152 with SMTP id 24mr69838238pfr.13.1469072969067; Wed, 20 Jul 2016 20:49:29 -0700 (PDT) From: Bart Schaefer Message-Id: <160720205004.ZM27618@torch.brasslantern.com> Date: Wed, 20 Jul 2016 20:50:04 -0700 In-Reply-To: <20160720130512.GA20398@zira.vinc17.org> Comments: In reply to Vincent Lefevre "Re: Next release (5.3)" (Jul 20, 3:05pm) References: <20160712075849.GG1537@isis.sigpipe.cz> <160712094017.ZM17395@torch.brasslantern.com> <20160720130512.GA20398@zira.vinc17.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: Next release (5.3) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 20, 3:05pm, Vincent Lefevre wrote: } } But it does not say how ".." is resolved. Using the realpath system } call is a way (the only correct one) to resolve "..". Well, no, that's not true. Using something that implements the same algorithm as realpath is the only correct way to resolve a possible chain of several relative and symbolic links. But :a never said that it resolves symbolic links. It says it "turns a file name into an absolute path". The doc probably should have said "REMOVES any use of `..'" rather than "resolves", but there's no mention of symbolic links at all. You could argue that opendir("..") is the only correct way to "resolve" ".." but zsh has NEVER done that with "cd" except when CHASE_DOTS. As has become apparent, PWS wanted :a to predict the result of "cd", not to resolve symbolic links. And :A starts out with "as :a" before it gets to the part about links.