From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3) with ESMTP id AAA06196 for ; Fri, 26 Apr 1996 00:27:48 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id KAA03268; Thu, 25 Apr 1996 10:17:37 -0400 (EDT) Resent-Date: Thu, 25 Apr 1996 10:17:37 -0400 (EDT) From: Zefram Message-Id: <28140.199604251414@stone.dcs.warwick.ac.uk> Subject: Re: cd =5 changed semantics? To: andreas.koenig@mind.de Date: Thu, 25 Apr 1996 15:14:20 +0100 (BST) Cc: zsh-workers@math.gatech.edu In-Reply-To: <199604251303.PAA01505@anna.in-berlin.de> from "Andreas Koenig" at Apr 25, 96 03:03:55 pm X-Loop: zefram@dcs.warwick.ac.uk X-Stardate: [-31]7407.96 X-US-Congress: Moronic fuckers MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"ZNvvI1.0.-o.1cuVn"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/957 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu [beta14] > k@anna:/tmp% cd =2 > zsh: 2 not found [beta13] > anna% cd =2 > anna% pwd > /tmp The semantics, as you suggest, have changed. Equals substitution now only does pathname and alias substitution. The directory stack substitution is now done with ~. See zshexpn(1), specifically the section headed "FILENAME EXPANSION". This change was actually discussed and approved last year, but wasn't implemented until recently. The rationale is that this makes it possible to use = to generate the pathname of a command beginning with a digit (this *is* an issue), and it makes all the expansions to directory names use ~. -zefram