mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
add more examples on string interpolation
This commit is contained in:
parent
c209e6e108
commit
6ba8d6dc82
1 changed files with 6 additions and 2 deletions
|
@ -38,7 +38,7 @@ the rest.
|
|||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
`"Hello world"`
|
||||
`"hello world"`
|
||||
</td>
|
||||
<td>
|
||||
A string
|
||||
|
@ -58,10 +58,14 @@ the rest.
|
|||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
`"hello ${ { a = "world" }.a }"`
|
||||
|
||||
`"1 2 ${3}"`
|
||||
|
||||
`"${pkgs.bash}/bin/sh"`
|
||||
</td>
|
||||
<td>
|
||||
A string containing an expression (expands to `"/nix/store/<hash>-bash-<version>/bin/sh"`)
|
||||
String interpolation (expands to `"hello world"`, `"1 2 3"`, `"/nix/store/<hash>-bash-<version>/bin/sh"`)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
Loading…
Reference in a new issue