Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[BUG] Cannot use (#i) flag in [[ ]] explicit glib



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



Messages sorted by: Reverse Date, Date, Thread, Author