feedhenry / nodeschool

Node.js / Server side JavaScript development course curated by Red Hat Mobile
2 stars 7 forks source link

wrong command to start simple project #7

Closed kkaarreell closed 7 years ago

kkaarreell commented 7 years ago

In notebooks/Workshop.ipynb Instead of echo "console.log('Hello');\nconsole.log('World');\n" > index.js there should be echo -e "console.log('Hello');\nconsole.log('World');\n" > index.js

AdamSaleh commented 7 years ago

Couldn not reproduce? :-/

kkaarreell commented 7 years ago

??? 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.

AdamSaleh commented 7 years ago

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.