Error with multiline variable and ${VARIABLE}
notation: "Expected a variable name after this $"
#19
Labels
bug
Something isn't working
Given a file
hook.sh
:Then,
replay . hook.sh
errors:I'm not sure what exactly causes this bug, but it seems to be the combination of a multiline variable and the braced
${VARIABLE}
notation.I assume part of this bug is from the complexity of escaping in
replay.fish
: first the variable contents are passed tostring escape
, then piped throughstring replace --all -- \$ \\\$
, then throughstring replace --all -- \\n \n
.After inserting some debugging statements, it looks like this is what's
source
d in fish:And we can confirm:
I'm not actually sure what the
string replace --all \$ \\\$
bit is for; maybe it's relevant for other lines?The text was updated successfully, but these errors were encountered: