Skip to content

Conversation

@laomaiweng
Copy link

Double quotes don't need to be escaped inside Bash command substitution (either ` ` or $()). However the current code works since ` ` behaves specially wrt. backslashes (see "Command Substitution" in man bash). (That is not the case with $(), as Sabayon/genkernel-next#49 shows -- genkernel-next upgraded the ` ` substitution to a $() one.)

Still, since the escapes aren't needed, and break $(), I suggest they be removed. Also, I upgraded the substitution to a $() one, which is IMO easier for humans to parse (in general, not necessarily in this particular case).

@robbat2
Copy link
Owner

robbat2 commented Mar 29, 2019

Please add signed-off-by to your commit and rebase, then I'll merge

Double quotes don't need to be escaped inside Bash command substitution.
Also switch to the more modern $(), easier for humans to parse (and which happens to be less forgiving about such extra backslash escapes).

Signed-off-by: Quentin Minster <quentin@minster.io>
@laomaiweng
Copy link
Author

I have no idea if I'm doing things correctly with git but here you go, the branch seems rebased and the commit is signed-off-by. :)

@robbat2
Copy link
Owner

robbat2 commented May 16, 2022

Already fixed

@robbat2 robbat2 closed this May 16, 2022
@laomaiweng laomaiweng deleted the patch-1 branch June 29, 2022 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants