From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: BUG? Sh_word_split triggered in the supposed to be implicitly quoting [[-cond
Date: Tue, 5 Nov 2019 13:22:43 +0100 [thread overview]
Message-ID: <CAKc7PVA9h3P5PygBHS6gTZWdsN0OZTMAoFh3diTRm-Q-DC6u5A@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 716 bytes --]
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
next reply other threads:[~2019-11-05 12:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20191105122344eucas1p28f4ea02d36275648e2734e6ff6f1ef0e@eucas1p2.samsung.com>
2019-11-05 12:22 ` Sebastian Gniazdowski [this message]
2019-11-05 13:28 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKc7PVA9h3P5PygBHS6gTZWdsN0OZTMAoFh3diTRm-Q-DC6u5A@mail.gmail.com \
--to=sgniazdowski@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).