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
shfmt 3.7.0 incorrectly escapes backslashes in the following example:
### input
x=`echo "1.2" | sed -e 's/\./\\\\./g'`
echo $x # prints out 1\.2
### actual output
x=$(echo "1.2" | sed -e 's/\./\\\\./g')
echo $x # prints out 1\\.2
### expected output
x=$(echo "1.2" | sed -e 's/\./\\./g')
echo $x # prints out 1\.2
The text was updated successfully, but these errors were encountered:
nicki-krizek
changed the title
backslahes may be incorrectly escaped when converting to $(...) notation
backslashes may be incorrectly escaped when converting to $(...) notation
Oct 26, 2023
manu0x0
pushed a commit
to isc-projects/bind9
that referenced
this issue
Oct 26, 2023
Thanks - this sounds like a bug. We probably never noticed given that it's a relatively rare edge case. Happy to review a PR with a test.
mvdan
changed the title
backslashes may be incorrectly escaped when converting to $(...) notation
syntax: converting a backtick command substitution with escaped characters leaves too many backslashes
Nov 12, 2023
shfmt
3.7.0 incorrectly escapes backslashes in the following example:The text was updated successfully, but these errors were encountered: