patchThe GNU Bourne-Again SHell - Patches: patch #10340, a syntax error affects the...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #10340: a syntax error affects the subsequent command

Submitter:  Ilguiz Latypov <ilgiz>
Submitted:  Mon 08 May 2023 03:48:59 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  None Open/Closed:  Open

Tue 09 May 2023 01:55:52 PM UTC, comment #2: 

Thanks for the report.

This was reported in

https://lists.gnu.org/archive/html/bug-bash/2022-10/msg00098.html

and the fix is in the bash devel branch.

Chet Ramey <chet>
Group administrator
Mon 08 May 2023 03:51:04 PM UTC, comment #1: 

Err,

$ s="xyz"

$ if [[ "${s}" ~ yz ]] ; then echo "match \"${BASH_REMATCH[0]}\""; fi
-bash: conditional binary operator expected

$ if [[ "${s}" =~ yz ]] ; then echo "match \"${BASH_REMATCH[0]}\""; fi
-bash: syntax error near unexpected token `"${s}"'

$ if [[ "${s}" =~ yz ]] ; then echo "match \"${BASH_REMATCH[0]}\""; fi
match "yz"

Ilguiz Latypov <ilgiz>
Mon 08 May 2023 03:48:59 PM UTC, original submission:  

$ s="xyz"
$ if [[ "${s}" ~ yz ]] ; then echo "match \"${BASH_REMATCH[0]}\""; fi
-bash: conditional binary operator expected
$ if [[ "${s}" =~ yz ]] ; then echo "match \"${BASH_REMATCH[0]}\""; fi
match "yz"

Ilguiz Latypov <ilgiz>

 

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

No files currently attached

 

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)
  • -email is unavailable- added by ilgiz (Submitted the item)
  •  

    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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-05-09 chet StatusNone Done

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code