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

Re: How to delete .*.~undo-tree~ files?



On Wed, Jun 12, 2024 at 02:20:27PM +0200, Denis Bitouzé wrote:
> Le 12/06/24 à 13h30, Marc Chantreux a écrit :
> 
> >>   ┌────
> >>   │ rm -f .foo.\~undo-tree\~
> >>   └────
> >
> > You can also quote things instead of protecting each chars separately.
> > I have the feeling it's more readable because of the expectations
> > brains when you used non-bareword langages for years.
> >
> >  ┌────
> >  │ rm -f ".foo.~undo-tree~"
> >  └────
> 
> Indeed, thanks!
> 
> Anyway:
> 
>   ┌────
>   │ rm -f ".*.~undo-tree~" 
>   └────
> 
> doesn't remove in mass all the .*.~undo-tree~ in my current directory.
> 
> Regards.
> -- 
> Denis

... because a quoted * does not glob anything.

	rm -f .*.'~undo-tree~'

-- 
Andreas (Kusalananda) Kähäri
Uppsala, Sweden

.




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