-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unterminated template literal, if first line ends slashed #15704
Comments
I can't reproduce this. I saved this to a file and executed it with node v6.11.3 without any problem: const version = '2.7';
const fileContent = `RUN \\
cd /tmp && \\
curl -o ./Python-${version}.tgz https://www.python.org/ftp/python/${version}/Python-${version}.tgz && \\
tar -xzf ./Python-${version}.tgz && \\
cd ./Python-${version} && \\
./configure && \\
make && \\
make install && \\
cd /tmp && \\
rm -rf ./Python-${version};
`; |
Ah, so maybe it's only from terminal. I was testing in terminal before executing the full script.
|
^ also, i was pasting it, if that makes a difference. In v8 it is fine. |
It seems unlikely this will get fixed at this point given that the only viable fix was breaking other packages in the ecosystem. I'm going to close this out but if anyone feels strongly about it, feel free to reopen. Also worth noting that v6.x goes into maintenance at the end of April and this is a very low priority issue. |
I have a small script that templatizes a docker
RUN
command.This fails giving:
If I change it to the following, it works:
Using NVM and switching to 8.6.0 does resolve the issue.
The text was updated successfully, but these errors were encountered: