From c3a65d130c211b2a1cfc699da64200afdb86a3f9 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sun, 8 Dec 2019 02:41:07 +0100 Subject: pkgs/profpatsch/execline: use -W instead of EXECLINE_STRICT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit EXECLINE_STRICT does not apply to the `execlineb` command itself, so we don’t get any errors if the nesting is incorrect. `-W` does set it for `execlineb` however. --- pkgs/profpatsch/execline/write-execline.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pkgs/profpatsch/execline') diff --git a/pkgs/profpatsch/execline/write-execline.nix b/pkgs/profpatsch/execline/write-execline.nix index 52c72ed5..c2128ea3 100644 --- a/pkgs/profpatsch/execline/write-execline.nix +++ b/pkgs/profpatsch/execline/write-execline.nix @@ -6,8 +6,7 @@ let # Everything is escaped correctly. # TODO upstream into nixpkgs writeExeclineCommon = writer: name: { readNArgs ? 0 }: argList: writer name '' - #!${execlineb-with-builtins}/bin/execlineb -s${toString readNArgs} - export EXECLINE_STRICT 2 + #!${execlineb-with-builtins}/bin/execlineb -Ws${toString readNArgs} ${escape.escapeExecline argList} ''; writeExecline = writeExeclineCommon pkgs.writeScript; -- cgit 1.4.1