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

FW: Setting GLOB_DOTS for a single command



Zach Riggle wrote:
> I recently learned about GLOB_DOTS, which is pretty useful in some scenarios, e.g.
> 
> echo *(md-1)
> 
> To show all files modified within the last day.  However, in some cases I want to see hidden files (e.g. ./.foo) as well.  The globdots option is excellent for > this!

> Is there an easy way to set this for a single expression?

Have you tried

    echo *(Dmd-1)

? I think that may be what you're looking for.

Alex






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