diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-02-17 16:42:03 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-02-17 16:42:03 +0100 |
commit | 063de66909ff1b20394cdebdca1ef62bb6ca1d51 (patch) | |
tree | 030d9cd5851f4a9feb70bdf3778bb3a6740a06f6 /src | |
parent | 6042febfce3011aaa5e3c369ea14a0d93ad2880e (diff) |
nix develop: Fix quoted string handling
Fixes #4540.
Diffstat (limited to 'src')
-rw-r--r-- | src/nix/develop.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/develop.cc b/src/nix/develop.cc index 3c44fdb0e..0938cbe5b 100644 --- a/src/nix/develop.cc +++ b/src/nix/develop.cc @@ -59,7 +59,7 @@ BuildEnvironment readEnvironment(const Path & path) R"re((?:\$?"(?:[^"\\]|\\[$`"\\\n])*"))re"; static std::string squotedStringRegex = - R"re((?:\$?'(?:[^'\\]|\\[abeEfnrtv\\'"?])*'))re"; + R"re((?:\$?(?:'(?:[^'\\]|\\[abeEfnrtv\\'"?])*'|\\')+))re"; static std::string indexedArrayRegex = R"re((?:\(( *\[[0-9]+\]="(?:[^"\\]|\\.)*")*\)))re"; |