Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[ -d (#i)Temp ]
- X-seq: zsh-users 30518
- From: Ray Andrews <rayandrews@xxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: [ -d (#i)Temp ]
- Date: Fri, 10 Apr 2026 10:27:54 -0700
- Archived-at: <https://zsh.org/users/30518>
- List-id: <zsh-users.zsh.org>
Is it possible to do something like this:?
[ -d (#i)Temp ] && echo 'it's a directory'
... that doesn't work, but you get the idea: I have a directory
'temp' and I'm wanting the above test to succeed. As with
wildcards, even if it did make a match, I'd expect it to fail if
there's more than one match of course. I'm betting this is
doable.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author