mirror of
https://github.com/NixOS/nix
synced 2025-07-10 08:53:55 +02:00
Merge pull request #5066 from Radvendii/master
add antiquotations to paths
This commit is contained in:
commit
7ee639f9db
7 changed files with 125 additions and 22 deletions
12
tests/lang/eval-okay-path-antiquotation.nix
Normal file
12
tests/lang/eval-okay-path-antiquotation.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
let
|
||||
foo = "foo";
|
||||
in
|
||||
{
|
||||
simple = ./${foo};
|
||||
surrounded = ./a-${foo}-b;
|
||||
absolute = /${foo};
|
||||
expr = ./${foo + "/bar"};
|
||||
home = ~/${foo};
|
||||
notfirst = ./bar/${foo};
|
||||
slashes = /${foo}/${"bar"};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue