Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Is quoting of the assigned value needed?
- X-seq: zsh-users 24455
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Is quoting of the assigned value needed?
- Date: Fri, 22 Nov 2019 03:03:12 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=5trfRNANlfXqGl54S4XaJlM0X+k2DV2teqefkMnQCF4=; b=pBq4h6kFHEcp076TScInrGdvBBe2VRtT7485k4iPy2gSeHNnlEn1aU+bSG5PV7fvm6 F6QIxhL7keYnkmW+K69lFyLJ2vEwyd94ArrIEzE946IKxR1Nh3CKWHbgF4pVqBC+OdS+ oJkWM8Ywqq2s7zer4BfcGVi9MCkJ5DMZaAipsCR7JLABn0okEnf3qedIEMUhR5hllmPY WN1uIR9QM6XMyTCyLB23bljw/iMrxJPWGIyoqknYivnIgqfHiCMlcD/Fqh7IzQD9naHi gR2bIOqN0dHBiJlDiUs6J+xoKhK4ZmfM7rGPFV1pK5HtxQUVUEe2j9I3zSW4BtyJhlrw 6I1Q==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hello,
SH_WORD_SPLIT doesn't seem to cause any effects in this context:
setopt SH_WORD_SPLIT
var1="a b"
var2=$var1
print "$var2"
Output: a b
And also ${:-} doesn't reveal any effects:
setopt SH_WORD_SPLIT
var1="a b"
var2=${:-$var1}
print "$var2"
Output: a b
Is there however maybe a different option or substitution that would
influence the assignment when unquoted?
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author