From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3400 invoked by alias); 11 Oct 2012 12:46:46 -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: 17322 Received: (qmail 24640 invoked from network); 11 Oct 2012 12:46:44 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.220.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=iibmshaWKYeFFCWRD4VLHORRVIHyJj3KIzlswxtX25Y=; b=cGVFzk23jPo/3x9Sg8LTLmKyI+xNr/4yq3pWEauLoZWx/LkNo/FcvcnYoLY1mNyvxP +USMvt9HbAp4EHEMfEVTqEmJ1H1oNDzA5pfMIOUXj36qmrlsRDfi3D6aZmMSCK3t05UI pbGPSn23/jn+ZDuZtsykhQBJKA4YbOJhS71kbiS2e/US5O8a+VShKavO7y/qU75WVgVa NqwBEABbmpryNFUHqeLlnCWQFw9ZwZc7sYSsOy/ByEzfmg8zBoU6n5IfrFDebTnr6jEa tmCgL4ZzxF914x+uF6oBU8U4wGuurq2UKlXUDqw2Q6AHxqnfoa+fkDoluS3ylpPrc7U3 WhfA== MIME-Version: 1.0 In-Reply-To: <5076B49A.90101@sergio.spb.ru> References: <5076B49A.90101@sergio.spb.ru> From: =?UTF-8?B?SsOpcsOpbWllIFJvcXVldA==?= Date: Thu, 11 Oct 2012 14:19:00 +0200 Message-ID: Subject: Re: dumb question about parameter expansion To: sergio Cc: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Sergio, 2012/10/11 sergio : > Looks like it's dumb question, but I can't understand this. > > % zsh -f > % l=3D'ls' > % o=3D'-l -h' > % $l $o > ls: invalid option -- ' ' > Try `ls --help' for more information. > > % ls -l -h > total 512 > drwxr-x--- 2 sergio sergio ... Unlike other shells, zsh doesn't split unquoted variables by default. If you want that behaviour, you can either: - =E2=80=9Csetopt shwordsplit=E2=80=9D to have it by default, or - use =E2=80=9C$l $=3Do=E2=80=9D to have it selectively (the =E2=80=9C=3D= =E2=80=9D forces the split). Best regards, --=20 J=C3=A9r=C3=A9mie