Closed kkaarreell closed 7 years ago
Couldn not reproduce? :-/
??? Isn't the description clear enough? You must tell echo to interpret escape characters, otherwise you would get "\n" strings in the index.js file.
We managed to figure this out on our second run. You need to add in -e
only if you are using bash/sh. When I and my colleague were reviewing this, both of us use zsh, that deals with the escapes, therefore we really didn't see the problem.
I will rechceck rest of our command-line examples in sh.
In notebooks/Workshop.ipynb Instead of
echo "console.log('Hello');\nconsole.log('World');\n" > index.js
there should beecho -e "console.log('Hello');\nconsole.log('World');\n" > index.js