diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-03-25 10:24:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-25 10:24:06 +0100 |
commit | 377782ecaefdd0d02d3edfd7c400f5ee8017aa49 (patch) | |
tree | bf2bc0eeb82f5933b68c135334d53a54bd1a0479 | |
parent | d9cfd853e52d0173f86a1648246360faa96c516c (diff) | |
parent | cbcb69a39ce7ceb300d5a5588258b7f8c0c0664d (diff) |
Merge pull request #6292 from polykernel/permissive-spacing-repl
nix: allow whitespace characters before command in repl
-rw-r--r-- | src/nix/repl.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix/repl.cc b/src/nix/repl.cc index 916353d8c..1f9d4fb4e 100644 --- a/src/nix/repl.cc +++ b/src/nix/repl.cc @@ -396,6 +396,7 @@ StorePath NixRepl::getDerivationPath(Value & v) { bool NixRepl::processLine(std::string line) { + line = trim(line); if (line == "") return true; _isInterrupted = false; |