bug-bash
[Top][All Lists]
Advanced

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

Re: Command saved incorrectly in history.


From: Mike Jonkmans
Subject: Re: Command saved incorrectly in history.
Date: Mon, 31 Aug 2026 15:30:41 +0200

On Mon, Aug 31, 2026 at 12:49:15PM +0200, Andreas Schwab wrote:
> On Aug 31 2026, Mike Jonkmans wrote:
> 
> > Being able to leave out the last ';' in { ... } would be really nice.
> > Saves typing (especially interactively) and would allow 'empty() { }' too.
> > It is also backwards compatible, scripts would already have been broken.
> 
> That is not backwards compatible, because } is not special outside of
> reserved words position.

Ah, indeed it is not.
I thought one could make } reserved at the last position of a command.
But that is indeed not backwards compatible with e.g. 'echo }'.
Good catch.

-- 
Regards, Mike Jonkmans



reply via email to

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