Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: bug report about zsh



air azure wrote on Mon, 20 Aug 2018 09:56 +0800:
> sshfs xxxx@[yyyy:yy::yy]:/zzz ~/remote
> 
> zsh report back
> zsh: no matches found: xxxx@[yyyy:yy::yy]:/zzz

That's not a bug.  Square brackets are globbing syntax:

% touch a b c d e f
% ls -1 [a-c]
a
b
c
% 

You should just quote or escape the square brackets.  (There _is_
`unsetopt NO_MATCH` but it's not recommended because it's basically an
opt-in to unpredictable/ambiguous parsing.)



Messages sorted by: Reverse Date, Date, Thread, Author