From 36b9ce24b11a87b3e71f4f4fec9f3e5ad6af7b95 Mon Sep 17 00:00:00 2001 From: Tim Cuthbertson Date: Sun, 6 Dec 2015 10:39:25 +1100 Subject: [PATCH] doc: Clarify why multiple arguments are not supported in shebang line It's not a limitation of `/usr/bin/env`, it's just how the OS processes shebang lines (see http://stackoverflow.com/a/4304187) --- doc/manual/command-ref/nix-shell.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/manual/command-ref/nix-shell.xml b/doc/manual/command-ref/nix-shell.xml index 9e3e6d188..a13d9d7c1 100644 --- a/doc/manual/command-ref/nix-shell.xml +++ b/doc/manual/command-ref/nix-shell.xml @@ -252,8 +252,8 @@ dependencies in Nixpkgs. The lines starting with #! nix-shell specify nix-shell options (see above). Note that you cannot write #1 /usr/bin/env nix-shell -i ... because -/usr/bin/env does not support passing options to -the interpreter. +many operating systems only allow one argument in +#! lines. For example, here is a Python script that depends on Python and the prettytable package: