| 19 Feb 2026 |
alexfmpe | huh hang on a sec, there's 3 sets of single quote pairs in there? | 23:58:14 |
woobilicious | must be a bug lol | 23:59:04 |
alexfmpe | I dunno how that works, but it works
nix-repl> ''export LD_LIBRARY_PATH=`pwd`/dist/build''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH''
"export LD_LIBRARY_PATH=`pwd`/dist/build\${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
| 23:59:13 |
woobilicious | oh it lets you use ${} in the bash script | 23:59:40 |
| 20 Feb 2026 |
alexfmpe | what is this madness
nix-repl> ''abc''def''
error: undefined variable 'def'''
at «string»:1:8:
1| ''abc''def''
| ^
nix-repl> ''abc''$def''
"abc$def"
| 00:00:19 |
woobilicious | yeah it treats $ literally | 00:00:39 |
alexfmpe | nix-repl> ''abc'$def''
"abc'$def"
| 00:01:00 |
alexfmpe | I need to hit someone | 00:01:16 |
alexfmpe | so IIUC, ''$ is a fancy special construct to quote $ ? | 00:02:00 |
woobilicious | nix-repl> ''abc''${test}''
"abc\${test}"
| 00:02:21 |
alexfmpe | looks like it | 00:02:33 |
alexfmpe | disturbing but whatever | 00:02:42 |
alexfmpe | I really don't see how ''$ improves on \$ | 00:03:40 |
woobilicious | nix-repl> ''''$''
"$"
nix-repl> ''abc''$def''
"abc$def"
| 00:05:04 |
alexfmpe | what the hell | 00:05:13 |
woobilicious | Mine gives a different result lol | 00:05:17 |
alexfmpe | nix-repl> "abc\${def}"
"abc\${def}"
nix-repl> ''abc\${def}''
error: undefined variable 'def'
at «string»:1:9:
1| ''abc\${def}''
| ^
| 00:05:20 |
alexfmpe | nah, I used both 1 and 2 single quotes above | 00:06:00 |
alexfmpe | yours is the same as my 2 ', just not the 1 ' | 00:06:27 |
alexfmpe | * nix-repl> "abc\${def}"
"abc\${def}"
nix-repl> ''abc\${def}''
error: undefined variable 'def'
at «string»:1:9:
1| ''abc\${def}''
| ^
| 00:06:48 |
woobilicious | I guess maybe there's instances where you want to pass escapes from variables | 00:07:03 |
woobilicious | oh yeah somehow I thought you had two singles on that line | 00:07:36 |
alexfmpe | nix-repl> "abc''\def"
"abc''def"
| 00:07:41 |
alexfmpe | ???? | 00:07:44 |
woobilicious | Tho \\ should just work lol | 00:07:54 |
alexfmpe | oh nevermind I don't have $ there | 00:08:31 |
alexfmpe | still, don't much care for this escape-differently-in-multiline-strings business | 00:09:07 |
alexfmpe | https://nix.dev/manual/nix/2.24/language/syntax | 00:10:00 |
alexfmpe | * still, don't much care for this escape-differently-in-indented-strings business | 00:10:11 |
alexfmpe | ''\ escapes any other character. | 00:10:21 |