mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
== operator: Ignore string context
There really is no case I can think of where taking the context into account is useful. Mostly it's just very inconvenient.
This commit is contained in:
parent
b1beed97a0
commit
ee7fe64c0a
3 changed files with 4 additions and 13 deletions
|
@ -1,6 +1,6 @@
|
|||
let s = "foo ${builtins.substring 33 100 (baseNameOf ./eval-okay-context.nix)} bar";
|
||||
in
|
||||
if s == "foo eval-okay-context.nix bar"
|
||||
if s != "foo eval-okay-context.nix bar"
|
||||
then abort "context not discarded"
|
||||
else builtins.unsafeDiscardStringContext s
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue