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
To Reproduce
A short version: amber eval 'let source = "\n"; source = trust $ echo "\$\{{nameof source}}" $; trust $ echo \$\{{nameof source}@Q} $' → '' ($'\n' is expected)
Longer:
funprint_h(text){trust$echo \$\{{nameoftext}@Q}$}letsource="\n"// originalprint_h(source)// assignsource=trust$echo"\$\{{nameof source}}"$// should be the same as the originalprint_h(source)
Unexpectedly, the source is replaced with an empty string.
To Reproduce
A short version:
amber eval 'let source = "\n"; source = trust $ echo "\$\{{nameof source}}" $; trust $ echo \$\{{nameof source}@Q} $'
→''
($'\n'
is expected)Longer:
Unexpectedly, the source is replaced with an empty string.
Expected behavior
Additional context
if
__AMBER_VAL_0=$(echo "${__0_source}")
is replaced with__AMBER_VAL_0="$(echo \"${__0_source}\")"
, the problem disappears.IFS
.The text was updated successfully, but these errors were encountered: