Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
BUG? Sh_word_split triggered in the supposed to be implicitly quoting [[-cond
- X-seq: zsh-workers 44892
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: BUG? Sh_word_split triggered in the supposed to be implicitly quoting [[-cond
- Date: Tue, 5 Nov 2019 13:22:43 +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=qNeOYqEr53uVj6Xz2Fm9lfWFUAiiJzH8klJnmpYdsX0=; b=GawFoKPK6WBZGokfvvEfhYQfUoHhqYn+oiMsxj4g3DRQWcOdHM//0Kxy9r3dAA12jq mW5QFwoumNmP13+cjI498JDN8KmGPPULQlhOsn2WF7Ttitf5Lz5//PXtIduyiaZ5OKPF M5ydrSHiqa7kj8KXweSBMBZdtQ43gGhhsDNBgjLNhE5dGRrNbiFbRi0PxGCEI9GpgRao d2JIy4D5iEnsaQSU8sXuwxZb5KlXBm6iV4kmp5OrbhC6e22R4eotXF9FCKECs9TsvYe4 r/n2Dq758IupAiQheNjtmty/1LLJzo25wCwagVwrTR+u0a1cXHR+YNmAxwADWYIhA5DI fM4Q==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello,
var='!hello world'; setopt shwordsplit; [[ ${${var}[1]} != '!' ]] && print
No exclamation mark detected
Output: No exclamation mark detected
local -A hsh=( key '!hello world' ); setopt shwordsplit; [[
${${hsh[key]}[1]} != '!' ]] && print No exclamation mark detected
Output: No exclamation mark detected
local -a arr=( '!hello world' ); setopt shwordsplit; [[ ${${arr[1]}[1]} !=
'!' ]] && print No exclamation mark detected
Output: No exclamation mark detected
Question: doesn't using [[ mean that the arguments are quoted ->
shwordsplit is inactive?
--
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