From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19489 invoked by alias); 3 Nov 2015 07:49:30 -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: 20889 Received: (qmail 18399 invoked from network); 3 Nov 2015 07:49:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FREEMAIL_REPLY,HTML_MESSAGE,MISSING_HEADERS,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:cc:content-type; bh=HU7PYf+3YttO3gVtjWaZKGS1CoZrgIqNC+O1ojunJlM=; b=etplPFilm4hjiiJEOJhug2JF2m3wO7vaSRxNxvOWXMPafeYKof9YmVjjS6MHiZsMfl LQvwgm6d/qu2D+83AFU5/Oc79J/J2488pozoc+D+xNv+AQsWDdYRIEzfaucIXVZ+P2Fl JJU/Dc+x5XG9NtvocRn7+7en74++IxQQz4iuwwZKFtZMqZk04E+ZKHhkQmzJYe8+SqB8 t+09BN/i7ORPSUNcvKYH0qi0JTW643v7QvLosJD61QexYSs90QqfnhjapkgzpvxQeJEH hlYvEIFPfxFa0KEh3meH1/M67cRYcFPRpFttrh/i8lSYzO8duKR4UJfV6oO7rMyoP41n d+Qw== X-Received: by 10.60.17.200 with SMTP id q8mr3419005oed.76.1446536968562; Mon, 02 Nov 2015 23:49:28 -0800 (PST) MIME-Version: 1.0 Sender: a.skwar@gmail.com In-Reply-To: <20151103071312.GB13762@lilyforest> References: <20151103071312.GB13762@lilyforest> From: Alexander Skwar Date: Tue, 3 Nov 2015 08:49:09 +0100 X-Google-Sender-Auth: TW5nLwIYgycZv8RqKf3oCGQFIDU Message-ID: Subject: Re: for loop with parameter expansion in zsh vs. bash Cc: zsh-users@zsh.org Content-Type: multipart/alternative; boundary=089e012952fe2a70bc05239e22b0 --089e012952fe2a70bc05239e22b0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello 2015-11-03 8:13 GMT+01:00 lilydjwg : > > % for e in ${=3DPATH//:/ }; do echo e: $e; done > =E2=80=8BThat's easy enough to type and remember, even for me ;)=E2=80=8B > > zsh has sh_word_split option unset by default, so use ${=3Dvar} to reques= t > word splitting explicitely. > > I like this behaviour very much, because I don't need to quote nearly > every variable :-) > =E2=80=8BThanks a lot. Might get used to it as well *G*=E2=80=8B > > PS: there is a coresponding $path array, and you can tie your own > variables like this: > > > export -TU PYTHONPATH pythonpath 2>/dev/null > > Re-tying a variable fails for zsh 4.x so I have to redirect the error > message to the black hole. And '-U' is for uniq to remove duplicates. > =E2=80=8BCool. Thanks ;)=E2=80=8B =E2=80=8BCheers, Alexander --=20 =3D> *Google+* =3D> http://plus.skwar.me <=3D=3D =3D> *Chat* (Jabber/Google Talk) =3D> a.skwar@gmail.com <=3D=3D --089e012952fe2a70bc05239e22b0--