https://bugs.kde.org/show_bug.cgi?id=521069

            Bug ID: 521069
           Summary: Uncomplete support for bash's new command substitution
    Classification: Frameworks and Libraries
           Product: frameworks-syntax-highlighting
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: syntax
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 192885
  --> https://bugs.kde.org/attachment.cgi?id=192885&action=edit
quoted command substitution

DESCRIPTION
Bash v5.3 introduced new command substitution.
https://www.gnu.org/software/bash/manual/bash.html#Command-Substitution:~:text=There%20is%20an%20alternate%20form%20of%20command%20substitution%3A

Syntax error when new command substitution is quoted. 


STEPS TO REPRODUCE
#!/usr/bin/env bash

# Pick color, intended as Kate external tool
color="${ kcolorchooser --print --color "$1";}"

# Hack since `kcolorchooser` command don't set it's exit code, thus
[[ "$color" == "$1" || ( -z "$1" && "$color" == "#000000" ) ]] || printf '%s'
"$color"


SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.6.5
KDE Frameworks Version: 6.26.0
Qt Version: 6.11.1

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to