bug-bash
[Top][All Lists]
Advanced

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

Inner Command Lists fail in Bash 5.2.15


From: dkroot2
Subject: Inner Command Lists fail in Bash 5.2.15
Date: Thu, 31 Aug 2023 12:05:21 -0400 (EDT)

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: darwin20.6.0
Compiler: clang
Compilation CFLAGS: -DSSH_SOURCE_BASHRC
uname output: Darwin San-Francisco-iMac.local 20.6.0 Darwin Kernel Version 
20.6.0: Thu Jul  6 22:12:47 PDT 2023; 
root:xnu-7195.141.49.702.12~1/RELEASE_X86_64 x86_64
Machine Type: x86_64-apple-darwin20.6.0

Bash Version: 5.2
Patch Level: 15
Release Status: release

Description:
        I've run into a regression in one of my scripts after upgrading Bash 
from 5.1.16 to 5.2.15 via HomeBrew on a Mac.
I was able to narrow it down to the Bash upgrade itself. The problem seems to 
be a pretty serious one that can affect a lot of scripts.

Repeat-By:

# Bash 5.1.16: success
# Bash 5.2.15: syntax error near unexpected token `}'
var2=$(time { echo foo; echo bar; })
echo -e "\nvar2=\`$var2\`"

# Bash 5.1.16: success
# Bash 5.2.15: syntax error near unexpected token `)'
var3=$(time (echo foo; echo bar))
echo -e "\nvar3=\`$var3\`"

Fix:
        [Description of how to fix the problem.  If you don't know a
        fix for the problem, don't include this section.]



reply via email to

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