From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 330 invoked from network); 8 Nov 1997 01:40:36 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 8 Nov 1997 01:40:36 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id UAA00524; Fri, 7 Nov 1997 20:30:15 -0500 (EST) Resent-Date: Fri, 7 Nov 1997 20:30:15 -0500 (EST) From: TGAPE! Message-Id: <199711052149.VAA05013@dal-tsa8-16.cyberramp.net> Subject: Re: Help!A Question To: sve6!zhouyh%ichp7@inethp1.bidc.cn.net (zhouyhong) Date: Wed, 5 Nov 1997 21:49:25 +0000 (GMT) Cc: zsh-workers@math.gatech.edu In-Reply-To: <199711050426.XAA25930@math.gatech.edu> from "zhouyhong" at Nov 5, 97 12:11:20 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"qP4PV1.0.48.c2yOq"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3602 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu zhouyhong wrote: > > Dear Zsh workers: > I'm a newcomer of Zshell. > I encounter a problem when I use Zshell > when I use the following alias: > alias fn='find . -name ''*''\!:1''*'' -print' ^^^^ What's this *thing*? You been using csh, or something? Get it hence. You need a function here: function fn { find . -name '*'$1'*' -print } This is in the FAQ, when explaining differences from csh. It is apparently not explicitly mentioned anywhere else, which I think is a documentation bug (I think it should be under HISTORY EXPANSION or under ALIASING, or both.) I do realize that if someone read the evaluation order, it'd be obvious, but be honest - how many people do you expect would read something that unrelated? (Ed covers his face with his hand as everyone but shoughong raises their hand.) NO! Not you developer types - you've read the documentation just because it's there. I mean the user types, dang it! Generally, if they read the docs which are obviously directly related to what they're doing, it's pretty amazing. Put stuff like this there. Ed