Re: bash 5.2 and BASH_COMPAT question

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



On 9/17/23 07:45, Genes Lists wrote:
  - what else needs to be done to allow us to update to 5.2

Thoughts?

Hmm,

  This could be bad, or I'm reading it wrong, but

https://github.com/bminor/bash/blob/ec8113b9861375e4e17b3307372569d429dec814/COMPAT#L44

says "The 'list' that composes the body of the group command must be terminated by a newline or semicolon." (as it has been for a long while) and then gives the example:

    This is also an issue for commands like this:

	mkdir dir || { echo 'could not mkdir' ; exit 1; }


That command is fine from the quote standpoint. The terminating ';' *is* the last character before the reserved word closing '}'. So is the description wrong, or is the "This is also an issue for commands like this:" simply a misstatement because the closing ';' eliminates the "issue"?

--
David C. Rankin, J.D.,P.E.




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux