From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20327 invoked by alias); 28 Jun 2016 14:48:10 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 38769 Received: (qmail 15350 invoked from network); 28 Jun 2016 14:48:08 -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=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 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=gvfJ8DcGiiG1mg9VevE9+pvZxrHClGsHXDrsat2/SE8=; b=X7sbe92FG6Mw0OtZctQpnRUXxh0n4AMmH7pd89BWq9qA0qfUSMEaO/IZXa3MdfAz+s 9/lwmRrUex/jA69w6DbrpsE5tRkt658lJq6ateIdCZF+AMbWNmaCuWb89FYy5GGsWBB0 D+lfluPl5N64Ap9pSTkgsJDOszmiejVWAxiWzvNChwXQgglxLthHtfXaWs1OTfMTBS+h E3UiuIdB5MVgj7f6S84v+mqvzTp5a2BseTvyto7hJBsVYlhRsBH7YFR12AXu1zf3L/z8 exymAAfF9UwPl/cCBw8Ygm0isTRKpsQA14qONOi+d4nsau9EJJe1qCQY4j/lf20THGQ4 Usog== 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=gvfJ8DcGiiG1mg9VevE9+pvZxrHClGsHXDrsat2/SE8=; b=VRDZ45OPPNIWOs59MkomUaUlQ5UI6DzRS+0XSML19vbHyn8Q2iDGeMo36aY49yKp2t 0VeQxjtnvK8sUgUZXyF9btkrNR1M9LLUyonZHgymWmYeDaB54aIAOc1PdS8kT/o3gb3P vM7nEO/4ibQztjRpqDsELD8ZuB6pNqU0FFfKHMqWWWEkCwKgom+I1CKLzSCDdiPa3GTw GuxKnxpEJJkRYMc2Z0Dq3KwrdhyFZ+MzlmOD9KkC+u0vu/9YLfihGZxfkQuglmYY+wOR b/BAVKfSl1hFqOUEdN2UrXCkP3NZumxD74GRYbDPiDqEVIhN1xIS5UjPzeosA5KiZAFx +DaQ== X-Gm-Message-State: ALyK8tKEJ0XNXGDOl2x9HtopEvX+P6yyEhFJQAy/ybxCqRnStfl1M/oExlLexBrI+OFkWA== X-Received: by 10.66.255.7 with SMTP id am7mr2480363pad.75.1467125286403; Tue, 28 Jun 2016 07:48:06 -0700 (PDT) From: Bart Schaefer Message-Id: <160628074851.ZM26955@torch.brasslantern.com> Date: Tue, 28 Jun 2016 07:48:51 -0700 In-Reply-To: <20160627002031.GA20366@tarsus.local2> Comments: In reply to Daniel Shahaf "Re: [PATCH v2 2/3] Fix the ':A' word modifier on paths with '..' components." (Jun 27, 12:20am) References: <20160613085218.GA9572@tarsus.local2> <1466474004-4669-1-git-send-email-danielsh@tarsus.local2> <1466474004-4669-2-git-send-email-danielsh@tarsus.local2> <20160625162807.GA9840@tarsus.local2> <20160627002031.GA20366@tarsus.local2> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: [PATCH v2 2/3] Fix the ':A' word modifier on paths with '..' components. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 27, 12:20am, Daniel Shahaf wrote: } } Mikael Magnusson wrote on Sat, Jun 25, 2016 at 18:47:58 +0200: } > That sounds pretty pointless, you would still break existing scripts, } } Yes, that's the whole point: I think the "new" semantics should be the } default. Obviously breaking scripts is not the point. On the other hand, I don't think many scripts would care. :A is only used in four places in zsh's Completion and Functions trees and none of those would suffer from the change in semantics as far as I can tell. I floated the idea of testing CHASE_DOTS so that there would be a way to globally revert to the old behavior without having to update a lot of scripts, but I hadn't considered the "backward" semantics, and I'm not in favor of introducing a new option specifically for :A control. However, with the current implementation there is NO way to obtain the semantics Daniel wants. Therefore I think the only reasonable solutions are: (1) keep the current default and respect CHASE_DOTS to get the function Daniel wants, or (2) change the default and use :a:A to get the old behavior. I lean slightly towards (1) but only because the doc has explicitly called out the "resolve .. first" behavior for the past 7 years.