You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo (
test""andecho a # comment 1 '''orecho b # comment 2 '''
)
echo (
test""andecho a # comment 1 'orecho b # comment 2 '
)
and of course:
echo (
test""andecho a # comment 1orecho b # comment 2
)
...
a few other notes:
✔️ works:
echo (
test""andecho a # comment 1 'orecho b # comment 2#'
)
❌ fails:
echo (
test""andecho a # comment 1 'orecho b # comment 2
) #'
❌ fails:
echo (
test""andecho a # comment 1 'orecho b # comment 2
)
#'
✔️ works:
echo ( #'test""andecho a # comment 1 'orecho b # comment 2
)
)
The text was updated successfully, but these errors were encountered:
OwenAR
changed the title
Is this a bug in the parser, such that it sees unbalances quotes within a comment in this context (command substitution?) as an error, or...?
Is this a bug in the parser, such that it sees unbalanced quotes within a comment in this context (command substitution?) as an error, or...?
Mar 26, 2021
faho
changed the title
Is this a bug in the parser, such that it sees unbalanced quotes within a comment in this context (command substitution?) as an error, or...?
Parser checks quotes in command substitution comments
Mar 26, 2021
Is this a bug in the parser, such that it sees unbalanced quotes within a comment (within this context (command substitution?) as an error, or..?
This works:
But this gets an error:
(fish, version 2.7.1 (ppa 3.2.1-1~focal))
(
Also work:
and of course:
...
a few other notes:
✔️ works:
❌ fails:
❌ fails:
✔️ works:
)
The text was updated successfully, but these errors were encountered: