zsh: find with '*' in path

1.6k views Asked by At

At the moment I'm playing with zsh+prezto and really like it so far, but now I have problem with find.

Some preparations:

zsh> mkdir -p /tmp/1/2/3
zsh> mkdir -p /tmp/1/3/4
zsh> find /tmp/1
/tmp/1 
/tmp/1/3
/tmp/1/3/4
/tmp/1/2
/tmp/1/2/3
zsh> ls /tmp/1/*/*
/tmp/1/2/3:

/tmp/1/3/4:

Trying to use find with globbing:

zsh> find /tmp/1/*/*
find: `/tmp/1/*': No such file or directory

Trying to quote the path:

zsh> find '/tmp/1/*/*'
find: `/tmp/1/*': No such file or directory

Doing to same in bash:

bash> find /tmp/1/*/*
/tmp/1/2/3
/tmp/1/3/4

Which config option do I have to set to make this work in zsh?

1

There are 1 answers

2
rmweiss On BEST ANSWER

Found it:

> grep find .zprezto/modules/utility/init.zsh
alias find='noglob find'

Now I have to do some research to find out if there's a good reason for this.