From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26163 invoked by alias); 24 Aug 2011 17:10:25 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16285 Received: (qmail 14042 invoked from network); 24 Aug 2011 17:10:22 -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,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: zsh-users@zsh.org Subject: Re: INTERACTIVE_COMMENTS - why? In-Reply-To: <110824080039.ZM25273@torch.brasslantern.com> (Bart Schaefer's message of "Wed, 24 Aug 2011 08:00:39 -0700") References: <87y5yjf251.fsf@ft.bewatermyfriend.org> <87ty97eyny.fsf@ft.bewatermyfriend.org> <110824080039.ZM25273@torch.brasslantern.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Date: Wed, 24 Aug 2011 19:05:51 +0200 Message-ID: <87pqjug2og.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Df-Sender: 430444 Bart Schaefer wrote: > On Aug 24, 3:17pm, Frank Terbeck wrote: > } Fair enough. But then again, who wouldn't set `extended_glob'? ;) > > I don't. I have a little "eglob" function that I use as a prefix to > the command line when I want extended globbing. (Obviously I spend > too much of my time cleaning out backup files that have "#" and "~" > in their names.) Hm. I wonder how you're doing that. I've ended up with the following: alias eglob='noalias eglob' function eglob() { emulate -L zsh setopt extended_glob ${~"${argv[@]}"}; } Are you doing something similar or is there a neat trick to do that differently? > } Still: The choice of having it unset by default might still be for > } emulating csh behaviour. Or maybe not. If someone can remember why > } it's off by default, I'd be glad to hear about it. > > It's almost certainly related to csh. Zsh was first invented as a > shell to bring Bourne shell parsing regularity and scripting features > to users (university students in a BSD Unix environment) who had been > introduced to Unix via csh. Anything that would overtly confuse a > csh-er who was typing a simple one-liner at the prompt was avoided. Okay. Thanks for clearing that up. Regards, Frank