bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Avoid asterisk expansion when it selects "everything"


From: Anis ELLEUCH
Subject: Avoid asterisk expansion when it selects "everything"
Date: Wed, 13 Apr 2016 11:23:01 +0000

Hello everybody,

I would like to ask if it is possible to disable expanding asterisk when it selects all entries ?

`$ rm * .jpg` with a mistaken space between asterisk and .jpg will delete everything in your home directory or in the entire disk.

In my opinion, when the user asks to select "everything" which could be `*` or `path/*`, bash has to show a confirmation prompt to check if the user was not mistaken, this option should be obviously disabled by default

Another idea: `*` and `/*` should not be interpreted and the user has to enter another sequence "more powerful" to emphasize selecting all entries ( `^*` would it work just fine ?)

Cordially,
--

Sent from my mobile


reply via email to

[Prev in Thread] Current Thread [Next in Thread]