"@q" This section is not marked as an error, which is bash's allowed syntax, which you can find in its manual
8.2.4919
Os: Ubuntu 22.04
Shell: Bash-5.1.16
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I'm afraid that I haven't seen that syntax before and the bash manual is quite large. Please elucidate on what its supposed to do. When I ran your code snippet, I got line 3: ${a@Q}: bad substitution (I have a #! /bin/bash on top).
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Under Parameter Expansion
${parameter@operator}
Parameter transformation. The expansion is either a transformation of the value of
parameter or information about parameter itself, depending on the value of opera‐
tor. Each operator is a single letter:
U The expansion is a string that is the value of parameter with lowercase al‐
phabetic characters converted to uppercase.
u The expansion is a string that is the value of parameter with the first
character converted to uppercase, if it is alphabetic.
L The expansion is a string that is the value of parameter with uppercase al‐
phabetic characters converted to lowercase.
Q The expansion is a string that is the value of parameter quoted in a format
that can be reused as input.
E The expansion is a string that is the value of parameter with backslash es‐
cape sequences expanded as with the $'...' quoting mechanism.
P The expansion is a string that is the result of expanding the value of pa‐
rameter as if it were a prompt string (see PROMPTING below).
A The expansion is a string in the form of an assignment statement or declare
command that, if evaluated, will recreate parameter with its attributes and
value.
K Produces a possibly-quoted version of the value of parameter, except that it
prints the values of indexed and associative arrays as a sequence of quoted
key-value pairs (see Arrays above).
a The expansion is a string consisting of flag values representing parameter's
attributes.
If parameter is @ or *, the operation is applied to each positional parameter in
turn, and the expansion is the resultant list. If parameter is an array variable
subscripted with @ or *, the operation is applied to each member of the array in
turn, and the expansion is the resultant list.
The result of the expansion is subject to word splitting and pathname expansion as
described below.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
I'm afraid that I haven't seen that syntax before and the bash manual is quite large. Please elucidate on what its supposed to do. When I ran your code snippet, I got
line 3: ${a@Q}: bad substitution(I have a #! /bin/bash on top).


Syntax highlighting broke after updating to version 9.0.1302. Rolled back to version 9.0.1182 archlinux.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@TAforever I think it's another issue. See #11937.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@TAforever I think it's another issue. See #11937.
@k-takata Thank you! problem solved
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I also have the same problem
@scrawld Same problem as what? This issue is about echo "${a@Q}", and fixed as indicated in #11937
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Duplicate of #10551.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
this seems to be fixed by dd60c36#diff-650e28e4ad6a5c9241345580a7136ff18b5629f3b4910a5b5a455828bca5e517
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #11969 as completed.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()