helpThe GNU Bourne-Again SHell - Support: sr #110500, Parentheses around command...

 
 

sr #110500: Parentheses around command substitution

Submitter:  None
Submitted:  Sun 30 May 2021 04:47:08 AM UTC
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  None
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Mon 07 Jun 2021 09:19:43 PM UTC, comment #2: 

Thanks for the report. This was fixed a couple of months ago in the devel branch.

Chet Ramey <chet>
Project Administrator
Sun 30 May 2021 05:07:48 AM UTC, comment #1: 

Additionally, the following produces no error message with "bash" but produces the error message with "bash -i":

[[ "$(\
echo str)" ]]

the following produces no error message with both "bash" and "bash -i":

[[ "$(
echo str)" ]]

Anonymous
Sun 30 May 2021 04:47:08 AM UTC, original submission:  

For the following script "bug.sh":

[[ "$(echo str1 \
str2)" ]]

The error message "line 1: unexpected EOF while looking for matching `)'" is produced when executed with "bash -i bug.sh"

Works fine with Bash 4.4, "bash -i bugh.sh" produces the error message on Bash 5.1, from 5.1.0 through 5.1.8, but "bash bug.sh" does not produce the error message.

Each of the following does not produce the error message:

[[ $(echo str1 \
str2) ]]

test "$(echo str1 \
str2)"

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #51498:  bug.sh added by None (28B - application/octet-stream - run "bash -i bug.sh" with Bash 5.1.8 or earlier Bash 5.1 versions)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by chet (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-06-07 chet StatusNone Done
    2021-05-30 None Attached File- Added bug.sh, #51498

    Back to the top


    Powered by Savane 3.9