On Mon, Jun 30, 2025 at 08:33:49 -0600, Stan Marsh wrote: > It seems to me that there is never any need for $ in arithmetic contexts, so > the > obvious fix would be to just remove any $ found between (( and )). But from > what I > understand that is easier said than done.
Unfortunately, that's not true. You need $ if you want to use any special parameters in an arithmetic context, such as $# or $1.