From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27625 invoked from network); 22 May 2007 09:27:28 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.0 (2007-05-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=no version=3.2.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 22 May 2007 09:27:28 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 56703 invoked from network); 22 May 2007 09:27:21 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 May 2007 09:27:21 -0000 Received: (qmail 18127 invoked by alias); 22 May 2007 09:27:19 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23455 Received: (qmail 18118 invoked from network); 22 May 2007 09:27:18 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 22 May 2007 09:27:18 -0000 Received: (qmail 56464 invoked from network); 22 May 2007 09:27:18 -0000 Received: from luonnotar.infodrom.org (217.114.79.202) by a.mx.sunsite.dk with SMTP; 22 May 2007 09:27:13 -0000 Received: by luonnotar.infodrom.org (Postfix, from userid 10) id CA9A264822E; Tue, 22 May 2007 11:27:09 +0200 (CEST) Received: by finlandia.home.infodrom.org (Postfix, from userid 2006) id F2FFC10160; Tue, 22 May 2007 11:27:04 +0200 (CEST) Date: Tue, 22 May 2007 11:27:04 +0200 From: Maddi Kopfermann To: Bart Schaefer Cc: Zsh-Workers Subject: Re: bindkey history-beginning-search-backwards; echo $widgts = crash Message-ID: <20070522092704.GB4576@finlandia.home.infodrom.org> References: <20070521202131.GA14758@finlandia.home.infodrom.org> <20070522014632.GA11326@redoubt.spodhuis.org> <20070522033237.GA4576@finlandia.home.infodrom.org> <070521223729.ZM6171@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <070521223729.ZM6171@torch.brasslantern.com> X-Operating-System: Debian GNU/Linux User-Agent: Mutt/1.5.13 (2006-08-11) On Mon, May 21, 2007 at 10:37:29PM -0700, Bart Schaefer: > } Sadly not only in that case! > > Why do you think so? In every example you gave, you first bound a key > to a widget that does not exist, and then tried to echo $widgets. > > } zsh -fc "bindkey '^o' history-beginning- && echo $widgets" > } crashes the shell > } > } the attempt to let completion work crashes the shell. > > I don't understand what that example is supposed to be showing. What > do you mean by "let completion work"? Completion only happens in the > line editor in an interactive shell, you can't pass a literal tab to > zsh -fc and expect anything to happen. And even if you mean that you > did type a tab in ZLE, the completion you show would be ambiguous -- > ordinarily it would take more than one tab at that position to complete > a valid widget name. I see my mistake. Whatever I did was with an already "infected" zsh so that _every_ "echo $widgets" does crash it, no matter what i write before it. In a zsh without any configuration (zsh -f) those described cases _don't_ crash the shell. Matthias