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

Preventing "no matches found:"



Is there some way to indicate that patterns may have no matches? I am doing a cron job that does cleanup of all files older than a certain time and have a line like:

  rm ~/log/**/*.log(m+7)

and would like to avoid the message:

  no matches found: ~/log/**/*.log(m+7)

by somehow indicating, either through a setopt or a parameter for (), that no matches is not an error.

Thanks.

--Tim



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