Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
globbing in conditional expressions
- X-seq: zsh-users 18782
- From: Roman Neuhauser <neuhauser@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: globbing in conditional expressions
- Date: Wed, 7 May 2014 14:41:01 +0200
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
hello,
i was hoping i could combine conditional expressions with
some globbing, but i'm struggling to find the proper syntax.
: 0 > ls fubar
snafu
: 0 > f=fubar(/F)
: 0 > echo $f
fubar(/F)
: 0 > echo $~f
fubar
: 0 > (set -x; [[ -z $~f ]])
+zsh:183> [[ -z 'fubar(/F)' ]]
: 1 >
i'm sure this is possible and documented, and i've just failed
to put the pieces together.
--
roman
Messages sorted by:
Reverse Date,
Date,
Thread,
Author