Interesting. There is this example in the docs:
let result = $ cat file.txt | grep "READY" $ failed {
echo "Failed to read the file"
}
https://docs.amber-lang.com/basic_syntax/commands
How can we know for sure what failed here? Was it the cat or the grep? My instinct says the pipe returns the code of the last cmd or failure, which could be either.
Perhaps it's just a contrived example and it would be better to separate testing file existence from grepping in real code...