bug-bash
[Top][All Lists]
Advanced

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

Re: ! history expansion occurs within arithmetic substitutions


From: Zachary Santer
Subject: Re: ! history expansion occurs within arithmetic substitutions
Date: Tue, 8 Aug 2023 15:59:23 -0400

On Tue, Aug 8, 2023 at 3:11 PM Dale R. Worley <worley@alum.mit.edu> wrote:

> But I would not take it as given that nobody would ever want to use
> history expanstion within an arithmetic substitution.  Let me concoct an
> example:
>

Yeah, that's all fair. Admittedly, I never use history expansion, so I'm
not thinking about how it could be useful in a given context. May as well
put 'set +o histexpand' in my .bashrc and call it a day.

When messing around in interactive mode to test things I may want to do in
a script, it's nice if it actually behaves the same. There are probably
some other set and possibly shopt things I should have somewhere if that's
what I want.

- Zack


reply via email to

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