From 6ecb11e62a09d483d810999a3f770736e96fffe1 Mon Sep 17 00:00:00 2001 From: chee Date: Mon, 6 Sep 2021 22:08:00 +0000 Subject: [PATCH] Remove misleading text about passing arguments to env gnu's `env` has a `-S` argument, which splits the string into command and arguments. --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6a550beff..936d8d88d 100644 --- a/README.md +++ b/README.md @@ -165,12 +165,9 @@ ts-node-cwd script.ts console.log("Hello, world!") ``` -Passing CLI arguments via shebang is allowed on Mac but not Linux. For example, the following will fail on Linux: +Passing CLI arguments via shebang requires passing the `-S` argument to `env` when using GNU Coreutils. - #!/usr/bin/env ts-node --files - // This shebang is not portable. It only works on Mac - -Instead, specify all `ts-node` options in your `tsconfig.json`. + #!/usr/bin/env -S ts-node --files ## Programmatic