-
Is there a specific design reason why the space preceding a comment is removed when it follows an open parenthesis, or is it by accident? Given the input #!/bin/sh
foo() { ## (bar, [baz])
:
} ## qux
corge() ( ## (grault, [garply])
:
) ## waldo
_=$( ## lorem ipsum
:
) ## dolor sit amet
#!/bin/sh
foo() { ## (bar, [baz])
:
} ## qux
corge() (## (grault, [garply])
:
) ## waldo
_=$(## lorem ipsum
:
) ## dolor sit amet |
Beta Was this translation helpful? Give feedback.
Answered by
mvdan
Apr 3, 2022
Replies: 1 comment 1 reply
-
Yup, this sounds like a bug; we should be consistenly spacing comments. I'll move this to the issue tracker. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mvdan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yup, this sounds like a bug; we should be consistenly spacing comments. I'll move this to the issue tracker.