zsh-workers
 help / color / mirror / code / Atom feed
* [BUG] Cannot use (#i) flag in [[ ]] explicit glib
@ 2019-09-11  2:49 Sebastian Gniazdowski
  2019-09-11 20:11 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Gniazdowski @ 2019-09-11  2:49 UTC (permalink / raw)
  To: Zsh hackers list

Hello,
if [[ -f (#i)$dir/README.md(#qN[1]) ]]; then echo true; fi

Output:
zsh: parse error near `('

A workaround is to precede with '', i.e.:

if [[ -f ''(#i)$dir/README.md(#qN[1]) ]]; then echo true; fi

-- 
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-11 20:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-11  2:49 [BUG] Cannot use (#i) flag in [[ ]] explicit glib Sebastian Gniazdowski
2019-09-11 20:11 ` Bart Schaefer

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).