From a15c7956bddb0d6e53c474bbc41134f7c83a914d Mon Sep 17 00:00:00 2001 From: Abhishek Raj Date: Mon, 13 Jan 2020 22:19:44 +0530 Subject: [PATCH] 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 3eb0f5150..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)