The original didn’t have the where clause.
Bash sucks. At best, only use it to pipe commands into each other in the terminal (Or change your shell to something else). For scripting, use Python or something.
Btw, Powershell runs on Linux if you want that
Browsers are huge these days. Firefox is well over 20 million lines of code.
The Linux kernel is 26 million source lines of code without comments and empty lines
You can globally share compile artifacts by setting a global target directory in the global Cargo config.
In $HOME/.cargo/config.toml:
[build]
target-dir = "/path/to/dir"
The only problems I had when I did it where some cargo plugins and some dependencies with build.rs files that expected the target folder in it’s usual location.
Many work fine, see if yours is listed here
error: unknown start of token: \u{37e}
--> src/main.rs:2:30
|
2 | println!("Hello, world!");
| ^
|
help: Unicode character ';' (Greek Question Mark) looks like ';' (Semicolon), but it is not
|
2 | println!("Hello, world!");
| ~
error: could not compile `playground` (bin "playground") due to previous error
Btrfs has it’s own build-in raid. From what I understand you should mount the filesystem with -o degraded and then use btrfs replace to switch to the new drive. I’ve never had to do that myself yet though.