about summary refs log tree commit diff
path: root/tests/lang/eval-okay-ind-string.nix
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-12-06T10·20+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-12-06T10·20+0000
commitb42ef9c0544009b372e3da0275553ce08cf0ea2a (patch)
tree28afd5929bde8db2fa5f82583193c6beb20d998f /tests/lang/eval-okay-ind-string.nix
parentd4950f207f18e635cc13e3ee33103fd501456384 (diff)
* Syntax to escape '', ${.
Diffstat (limited to 'tests/lang/eval-okay-ind-string.nix')
-rw-r--r--tests/lang/eval-okay-ind-string.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/lang/eval-okay-ind-string.nix b/tests/lang/eval-okay-ind-string.nix
index 7d5d61091588..ca83a5121864 100644
--- a/tests/lang/eval-okay-ind-string.nix
+++ b/tests/lang/eval-okay-ind-string.nix
@@ -104,4 +104,10 @@ let
     exec ${"slim"}/bin/slim
   '';
 
-in s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10 + s11 + s12 + s13
+  s14 = ''
+    Escaping of ' followed by ': '''
+    Escaping of $ followed by {: ''${
+    And finally to interpret \n etc. as in a string: ''\n, ''\r, ''\t.
+  '';
+
+in s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10 + s11 + s12 + s13 + s14