Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to delete .*.~undo-tree~ files?
- X-seq: zsh-users 30024
- From: Andreas Kähäri <andreas.kahari@xxxxxx>
- To: Denis Bitouzé <dbitouze@xxxxxxxxxx>
- Cc: zsh-users@xxxxxxx
- Subject: Re: How to delete .*.~undo-tree~ files?
- Date: Wed, 12 Jun 2024 14:25:52 +0200
- Archived-at: <https://zsh.org/users/30024>
- In-reply-to: <87a5jq73p0.fsf@example.com>
- List-id: <zsh-users.zsh.org>
- Mail-followup-to: Denis Bitouzé <dbitouze@xxxxxxxxxx>, zsh-users@xxxxxxx
- References: <87wmmu79zu.fsf@example.com> <ZmmG4GUX2Zt_ElHR@prometheus> <87a5jq73p0.fsf@example.com>
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