From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1352 invoked from network); 9 Mar 2005 11:42:00 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 9 Mar 2005 11:42:00 -0000 Received: (qmail 68935 invoked from network); 9 Mar 2005 11:41:53 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 9 Mar 2005 11:41:53 -0000 Received: (qmail 7400 invoked by alias); 9 Mar 2005 11:41:46 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8568 Received: (qmail 7390 invoked from network); 9 Mar 2005 11:41:45 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 9 Mar 2005 11:41:45 -0000 Received: (qmail 67759 invoked from network); 9 Mar 2005 11:41:45 -0000 Received: from wproxy.gmail.com (64.233.184.204) by a.mx.sunsite.dk with SMTP; 9 Mar 2005 11:41:40 -0000 Received: by wproxy.gmail.com with SMTP id 71so226174wra for ; Wed, 09 Mar 2005 03:41:39 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=qv/p+HX0bIofmvRjJsktSHosspRegrsbOOfqj+N5MFNa5g3NUc/czm6EHMmRP/U274E3a9wTTwwL+tdo1zjhPeFsNC8vLrfWKnOxo8lwjKbH1HkgcdqnC/JQe1c4gnFLZwVwyXRBo8OC0g5jaKeHotX/lA2yf4hBRSMzH8p0sng= Received: by 10.54.32.72 with SMTP id f72mr607515wrf; Wed, 09 Mar 2005 03:41:39 -0800 (PST) Received: by 10.54.18.66 with HTTP; Wed, 9 Mar 2005 03:41:39 -0800 (PST) Message-ID: Date: Wed, 9 Mar 2005 12:41:39 +0100 From: J Reply-To: J To: zzapper Subject: Re: Bash to Zsh Funny Cc: zsh-users@sunsite.dk In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.5 required=6.0 tests=BAYES_00,RCVD_BY_IP autolearn=ham version=3.0.2 X-Spam-Hits: -2.5 > gvim.exe $files & When you execute this line, $files is one space-separated string. zsh expands this to only one string and doesn't perform word-splitting, and that's what you expect most of the time. bash on the other hand performs word-splitting. Compare results of: $ a='b c' $ for i in $a; do echo $i; done ...in both zsh and bash. If you want to activate word-splitting in zsh, you can ask for it specifically for this expansion with ${=var}, or you can setopt shwordsplit to activate it for all expansions. You can get more info in the FAQ, http://zsh.sunsite.dk/FAQ/zshfaq03.html#l17 -- J "- Watashi, DATE-tte hajimete datta no... - Sou kai ? - Hontou wa suki na hito to surun deshou ?" -- Tokugawa Asuka