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
Some scripts can't be directly converted by string replacement. A good example is a for loop:
forvaluein 1 2 3 4;doecho"$value"done
This gets converted to for value in 1 2 3 4; do; echo "$value"; done, causing:
ash: syntax error: unexpected ";"
The extra ; after the do is the source of this particular error.
It seems that simply passing in the script unchanged works fine; what's the intent behind modifying the input run value instead of passing it in with the newlines intact?
The text was updated successfully, but these errors were encountered:
Some scripts can't be directly converted by string replacement. A good example is a for loop:
This gets converted to
for value in 1 2 3 4; do; echo "$value"; done
, causing:The extra
;
after thedo
is the source of this particular error.It seems that simply passing in the script unchanged works fine; what's the intent behind modifying the input
run
value instead of passing it in with the newlines intact?The text was updated successfully, but these errors were encountered: