1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-16 05:51:05 +01:00
nix/src
Naïm Favier 595010b631 nix-shell: fix shebang whitespace parsing
Leading whitespace after `nix-shell` used to produce an empty argument,
while an empty argument at the end of the line was ignored.

Fix the first issue by consuming the initial whitespace before calling
shellwords; fix the second issue by returning immediately if whitespace
is found at the end of the string instead of checking for an empty
string.

Also throw if quotes aren't terminated.
2023-10-23 15:56:07 +02:00
..
build-remote Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00
libcmd Overhaul completions, redo #6693 (#8131) 2023-10-23 15:03:11 +02:00
libexpr Merge pull request #9177 from edolstra/input-accessors 2023-10-23 11:42:04 +02:00
libfetchers Merge pull request #9177 from edolstra/input-accessors 2023-10-23 11:42:04 +02:00
libmain Overhaul completions, redo #6693 (#8131) 2023-10-23 15:03:11 +02:00
libstore Merge pull request #6223 from obsidiansystems/worker-proto-with-version 2023-10-23 09:16:23 -04:00
libutil Overhaul completions, redo #6693 (#8131) 2023-10-23 15:03:11 +02:00
nix Overhaul completions, redo #6693 (#8131) 2023-10-23 15:03:11 +02:00
nix-build nix-shell: fix shebang whitespace parsing 2023-10-23 15:56:07 +02:00
nix-channel Remove fetchers::Tree and move tarball-related stuff into its own header 2023-10-20 19:56:52 +02:00
nix-collect-garbage Clean up a few things related to profiles (#8526) 2023-06-19 04:04:59 +00:00
nix-copy-closure Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
nix-env printStats -> maybePrintStats 2023-10-09 16:34:35 +02:00
nix-instantiate printStats -> maybePrintStats 2023-10-09 16:34:35 +02:00
nix-store Factor out serialization for BuildResult 2023-10-20 15:19:28 -04:00
resolve-system-dependencies Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00