Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh detects rm * but not rm ** (multiple stars)
- X-seq: zsh-users 18599
- From: Amm <ammdispose-zsh@xxxxxxxxx>
- To: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Subject: zsh detects rm * but not rm ** (multiple stars)
- Date: Thu, 13 Mar 2014 17:26:28 +0800 (SGT)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1394702788; bh=8VVD2KXHUHVCsP4X1HhCCQ/E8y025YLGOHFPcB9qO1o=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=bTDPaz/Z8Gank+Dyg9xN//ILQ3fgcqlErespzjmsTHURfW5483sPk3zXpxGUUwN4gEKywXwNhl8geNrWu2fJlHfV7SIhAVOYnV1lxhhuGIVSd/Yyc6rpkxFkTvRmYt41lZ6KcDmHbAh3nvds2VQ26owdQbOVV2klPJPvNokdovA=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=dqeohozZGaOl7MFUYLW6h+BSRykyRy+O+ZiDNr3yVGs+w+BEdX6+Z1/ES8xsaIZmBuvwA8dVK4G/vKsAI09NugzU5eMzEIzS4RdctgPpjK17MkHdBcf6XD/oiWRzfstTFPsX8rJU8nyWO+IHVbCzWCyMPdQqq30spl5pqLz2/do=;
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Reply-to: Amm <ammdispose-zsh@xxxxxxxxx>
Hello,
I like this feature of zsh where it warns user when using
rm * or rm **/* (when RM_STAR_SILENT is not set)
But if by mistake I type rm ** OR for that matter rm **/**
it does not detect this and does not warn!
BOOM!! Everything will be erased in 2nd case!!
(I know there is still -i to save me!)
But I suppose match should not just be on single *
but on *+ (1 or more *)
Please consider this.
Also is there a way to make zsh warn when there is * in
argument list, regardless of command?
i.e. it should warn me even if I type:
$ cp * /abcd/
zsh: sure you want to pass all the files in ... [yn]?
Is this possible?
Thanks and regards,
Amm
Messages sorted by:
Reverse Date,
Date,
Thread,
Author