Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[BUG] Cannot use (#i) flag in [[ ]] explicit glib
- X-seq: zsh-workers 44751
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: [BUG] Cannot use (#i) flag in [[ ]] explicit glib
- Date: Wed, 11 Sep 2019 04:49:03 +0200
- 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=BaRBFqLCRy4E1HfIiBf4WKxG/13bhrIS6D4jPON/ZBw=; b=YggyQjoC6sx5sneKJiyLC9NWTapXolinyzZueHvrJpN7LH5BQLEFMVGgrwOCeDZJ8E wKDMWGp1rH9F09fgdipv0bHEjhZjCEBK8dvXcK5Cu/hNyeGEziYjBsQXNFuKML4PxLNS 5Bpaq8OuBniZxwwxAbpQZ1ltq7itkQ/3giEkNhcsCcLLkn/wufVgzh8L5W5QsHNQUBtq lFOpkPmhWUhxzCRENd482IBaOjegd+D5Ga89/pQRMbk0LHYtu59eptEjYmaH/t7aXzEf VO+0CW5hHW6/GUNEiBhz30XCTtyBHfy9rmZkI/GsTp7Zurr+HC6WBlWdt7rNKsFgafXB e5IQ==
- 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,
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