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

Re: noglob + find



"Benjamin R. Haskell" wrote:
> alias find='noglob find'
> 
> $ find /tmp/tmp.* -name *.c -mtime -1
> find `/tmp/tmp.*': No such file or directory
> 
> Is there a nice way to specify 'noglob'-like behavior for the arguments 
> after the first dashed argument?  So that I can specify glob patterns as 
> the directories, but not have to quote the 'find' patterns?

No.

What I do is use the expand-word widget to expand the first glob. So
with the cursor positioned after the first *, I press Ctrl-X,* and it
gets expanded on the command-line.

Oliver



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