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

Re: Bookworm: dash shell globs don't recognise [^...] to negate a character class



On Wed, 19 Apr 2023 davidson wrote:
On Wed, 19 Apr 2023 Max Nikulin wrote:
On 18/04/2023 21:19, Vincent Lefevre wrote:
BTW, history expansion can be very useful, but IMHO, this should
have been interactive and triggered by control characters or
escape sequences, not by "normal" characters.

It would be great. Unfortunately disabling histexpand option in bash blocks the M-^ shortcut as well.

shopt -s histverify

allows at least to confirm that expansion result is expected.

There is also the 'p' (print) word designator, that prints the

Sorry. Not a "word designator", but a "modifier". (Modifiers follow
word designator, if any).

expansion but does not execute it. Used like so:

$ !.:p # See what the history expansion for 'dot' is
. .bash_functions/manterm

This places the expansion in history as last command, so up-arrow +
return will now execute it.



--
Hackers are free people. They are like artists. If they are in a good
mood, they get up in the morning and begin painting their pictures.
-- Vladimir Putin


Reply to: