Re: [ -d (#i)Temp ]
Roman Perepelitsa <[email protected]> Fri, 10 Apr 2026 21:37:44 +0200
| Newsgroups | gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user |
|---|---|
| Message-ID | <CAN=4vMoZka61OTGMNBPvb_-LtusaO6Dm9cS4gmgCUjV=EQ7b_Q@mail.gmail.com> |
On Fri, Apr 10, 2026 at 9:12 PM Ray Andrews <[email protected]> wrote: > > 2 /aWorking/Zsh/Source/Wk 3 % [[ -d ''(#i)temp(#qN) ]] && echo "it's a directory" > > ... so your original is safer. This version works incorrectly if there is more than one match. See my previous reply, or try this: % mkdir test % cd test % mkdir Temp temp 'Temp temp' % [[ -d ''(#i)temp(#qN) ]] && echo FAIL Roman