From 3eb46e0211a46b213c0bcc4580229c1ed0fe44cd Mon Sep 17 00:00:00 2001 From: Abhishek Raj Date: Sat, 15 Feb 2020 13:39:46 +0530 Subject: [PATCH] Fix bash error in usage example on README page (#943) * Fix bash error in usage example on README page On Linux bash terminal, executing `echo "console.log('Hello, world!')"` gives the following error: `bash: !': event not found` To fix the issue, changing the log string from `Hello, world!` to `Hello, world` Tested on following systems: * Ubuntu 18.04.3 LTS * Linux Mint 19 * Switching the quotes to keep the exclamation mark Switching the quotes around in the line `echo "console.log('Hello, world!')" | ts-node` to get the line as `echo 'console.log("Hello, world!")' | ts-node` in order to keep the exclamation mark, while also avoiding the bash error at the same time. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b7389536e..1873f00c3 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ ts-node -e 'console.log("Hello, world!")' ts-node -p -e '"Hello, world!"' # Pipe scripts to execute with TypeScript. -echo "console.log('Hello, world!')" | ts-node +echo 'console.log("Hello, world!")' | ts-node ``` ![TypeScript REPL](https://github.com/TypeStrong/ts-node/raw/master/screenshot.png)