From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23858 invoked by alias); 24 Sep 2010 04:37:18 -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: 28286 Received: (qmail 27004 invoked from network); 24 Sep 2010 04:37:16 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at benizi.com designates 64.130.10.15 as permitted sender) Date: Fri, 24 Sep 2010 00:36:47 -0400 (EDT) From: "Benjamin R. Haskell" To: Zsh Workers Subject: !!$ unitialized at first prompt Message-ID: User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Experiencing bizarre behavior when the first thing I do in the shell is to call expand-or-complete on !$. If the value of !$ contains something from $IFS, it expands improperly during the first command to just the last word. # get something into history that has a space-y last arg first-shell$ echo 'a b' a b first-shell$ to logout # first noticed the weird tab-completion second-shell$ echo !$ zsh: do you want to see all 294 possibilities (49 lines)? # but it also doesn't expand to the correct value: # (without an intervening command) second-shell$ echo x!{$}y quote> echo xb'y I first thought it was related to having just added csh_junkie_history to my preferred options, but it's not. Reproducible with HISTFILE=/tmp/testhist ZDOTDIR=/nonexistent zsh -f. Seems like something's not being initialized in the correct order. -- Best, Ben