================== empty nix-shell ================== #!nix-shell --- (source_file (nix_shell_directive)) ================== nix-shell no interpreter ================== #!nix-shell -p gnused --- (source_file (nix_shell_directive)) ================== minimal nix-shell invocation with interpreter ================== #!nix-shell -i bash --- (source_file (nix_shell_directive (interpreter))) ================== whitespace in nix-shell ================== #! nix-shell -i bash --- (source_file (nix_shell_directive (interpreter))) ================== non-interpreter argument ================== #!nix-shell -i bash -p gnused --- (source_file (nix_shell_directive (interpreter))) ================== non-interpreter flags ================== #!nix-shell -i bash -p gnused awk --- (source_file (nix_shell_directive (interpreter))) ================== quoted arguments ================== #!nix-shell -i bash arg\ one 'arg"Two' "'argThree" --- (source_file (nix_shell_directive (interpreter))) ================== order-independent ================== #!nix-shell -p gnused -i bash --- (source_file (nix_shell_directive (interpreter)))