From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2837 invoked from network); 4 Dec 2003 20:51:08 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 4 Dec 2003 20:51:08 -0000 Received: (qmail 19882 invoked by alias); 4 Dec 2003 20:50:46 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6840 Received: (qmail 19869 invoked from network); 4 Dec 2003 20:50:46 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 4 Dec 2003 20:50:46 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [80.91.224.249] by sunsite.dk (MessageWall 1.0.8) with SMTP; 4 Dec 2003 20:50:46 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AS0Qv-00045m-00 for ; Thu, 04 Dec 2003 21:50:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AS0Qp-00045Q-00 for ; Thu, 04 Dec 2003 21:50:39 +0100 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AS0Qp-0002sl-00 for ; Thu, 04 Dec 2003 21:50:39 +0100 From: zzapper Subject: Re: Why doesn't cd ignore files when you type say "cd fred*" Date: Thu, 04 Dec 2003 20:50:33 +0000 Message-ID: References: <1031204173057.ZM17273@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Newsreader: Forte Free Agent 1.93/32.576 English (American) Sender: news Thanx Stephen & Bart Can anyone talk me thru the following two expressions I can guess what they are doing but I'd like to know the principles (which do the same thing (?)). I'm a zsh newbie and the shell syntax is still a bit shocking! dirs=( "${^@}"(-/N) ) [[ -d $d ]] && dirs=($dirs $d) # if $d is a directory then load dirname in array dirs zzapper -- vim -c ":%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?" http://www.vim.org/tips/tip.php?tip_id=305 Best of Vim Tips