Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bash to Zsh Funny
- X-seq: zsh-users 8568
- From: J <jean.chalard@xxxxxxxxx>
- To: zzapper <david@xxxxxxxxxx>
- Subject: Re: Bash to Zsh Funny
- Date: Wed, 9 Mar 2005 12:41:39 +0100
- Cc: zsh-users@xxxxxxxxxx
- 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=
- In-reply-to: <m5nt21910820l24esnv1ba14cnlb2f5go9@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <m5nt21910820l24esnv1ba14cnlb2f5go9@xxxxxxx>
- Reply-to: J <jean.chalard@xxxxxxxxx>
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author