Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
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=HfyMFkfBDUZMaUa+zQfAr0uS4l2A3tpEF8t55ViOLWw=;
        b=ITWoRyZJBya+fMfzvfZ4S0OGNglOKAMOt2e7AasUDrd4Oen/lSNe3i/zFzhcP7WuEo
         aB3NJF08/gG4wqdfGb7DkKBqqjRC8ypqdZpBSeuT3CzwQXEDj+Dd0ZDjCJ5dyBYnnnmX
         DTSh44+tv/gRidt7g7/CYxRBVXE0Z4MEB006baRGobqeCwXWoYIQJp9HEzKG5akQzSrE
         Op1hHo9Rr22lSNJWUfaI2vN5OWm6KZVc5Rjq0WQ2w2GtuQ6nnFDobNMTFaEW8O4LHyPF
         cTmWH8ACSRqs0Y7waIRJzEsmqFeRST61EfMQnsRAhvqGNd0qRhy2bhE6BGOZK8iWDpas
         j2Mg==
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=HfyMFkfBDUZMaUa+zQfAr0uS4l2A3tpEF8t55ViOLWw=;
        b=mYaEq9RLY1NAX08gFzQeQkUePyWn/tsjGrJI2ALgOwxLaEOnJONkR9FRaVDRx8W8lG
         uiBnBlP74+WdDhJDjUfNCvIgd50uxruZjWF8pSQabEOWKhK1+9+Pd7FKOiOzyEMSrTDT
         oDCeKRREjBkSUYf1ex7tTtDdbOj7vN0EewrRnk8zVg1Z335hVrTfXDP2nSLe8Z2SIiWo
         tYZclLOBmFkj5/HZKQGBzcOEcu2jsHsWZwecEUH1973caL3mNPplCwLnacqERAxG7vEe
         AEJzcW0hIGMacPk5F0wCwXdJ7hvH69tCUjpuP/5wuy8uwyAN8jthonF3U53yVthAadAg
         Febg==
X-Gm-Message-State: ALyK8tL9zh5/JHcpOwwpiJ8WKx8gml+Jyvpr70hkgDH1YcVVi2+J5Qqj2iPFLMqkfLqP7A==
X-Received: by 10.98.129.130 with SMTP id t124mr2791559pfd.156.1467431716329;
        Fri, 01 Jul 2016 20:55:16 -0700 (PDT)
From: Bart Schaefer <schaefer@brasslantern.com>
Message-Id: <160701090529.ZM9013@torch.brasslantern.com>
Date: Fri, 1 Jul 2016 09:05:29 -0700
In-Reply-To: <20160701051106.GA31422@tarsus.local2>
Comments: In reply to Daniel Shahaf <d.s@daniel.shahaf.name>
        "Re: [PATCH v2 2/3] Fix the ':A' word modifier on paths with '..' components." (Jul  1,  5:11am)
References: <20160613085218.GA9572@tarsus.local2> 
	<1466474004-4669-1-git-send-email-danielsh@tarsus.local2> 
	<1466474004-4669-2-git-send-email-danielsh@tarsus.local2> 
	<CAHYJk3QPM+wKmzoT5jhPD90e=kYpdT0Yf2hNXcZd9woUSov+Mg@mail.gmail.com> 
	<20160625162807.GA9840@tarsus.local2> 
	<CAHYJk3SrjHP3mT+c7xWH49ozhh18WHvLC5LRUzoZwWnkSSv8fA@mail.gmail.com> 
	<20160627002031.GA20366@tarsus.local2> 
	<160628074851.ZM26955@torch.brasslantern.com> 
	<20160701051106.GA31422@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
X-Seq: zsh-workers 38778

On Jul 1,  5:11am, Daniel Shahaf wrote:
} Subject: Re: [PATCH v2 2/3] Fix the ':A' word modifier on paths with '..' 
}
} What's the use-case for the "resolve '..' before symlinks" behaviour?
} 
} Was it an intentional design feature, or simply a documented bug?
} (Honest question.)

PWS will have to weigh in on that one.  The use-case may simply have
been the intention to make :A a superset of :a.

} (Perhaps instead of a new option, a new syntax; e.g., have $foo:A retain
} its meaning and $foo:A:A have the new meaning.  Or make :A take an
} optional argument.)

Not ideal IMO because either would make :A differ from all other history
modifiers in this respect.  I.e. :A:A should mean to resolve to real
path and then resolve to real path again, like :h:h means to chop two
elements off the tail (and thus the second :A should be a no-op like
repeating :t); and no other has an optional argument.  However, worth
considering.

Sorry to just sort of leave things there.  I don't have a strong
objection to changing the :A default given the :a:A equivalence, and
that seems the least confusing final outcome if we conclude that the
likelihood of breaking scripts is small, but I would like to reach a
consensus decision.

