Hello, given this test code:
test(){
setopt -L extended_glob
local glob=${(q)1}'.[0-9]##'
touch $1.1 $1.2
echo -E - $~glob
}
> test tmp
tmp.1 tmp.2
> test {tmp}
test:4: no matches found: \{tmp\}.[0-9]##
test '<tmp>'
<tmp>.1 <tmp>.2
It seems the quoting of the {} makes the expansion fail (on zsh 5.1.1)
is there any way I can quote the file name according to the glob expansion rules?
thanks