Re: ! history expansion occurs within arithmetic substitutions

2023-08-11 Thread Martin D Kealey
On Sat, 12 Aug 2023, 02:29 Dale R. Worley, wrote: > … The line is broken into words in the same fashion as when reading > input, so that several metacharacter-separated words surrounded by quotes > are considered one word. … I think it would be helpful to start this sentence with "The

Re: ! history expansion occurs within arithmetic substitutions

2023-08-11 Thread Dale R. Worley
Andreas Schwab writes: >> More troublesome, I think, are several variable substitutions which >> include "!" followed by a name. But I doubt they're used much in >> interactive mode. > > The history expansion is smart enough to not interfere with ${!var}. Yes... Also, the same magic seems to