206
Amber - the programming language compiled to Bash
(amber-lang.com)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
I checked the docs, and I'm a bit confused with one thing. They show that you can capture the stdout of a command into a variabe, but they never show stderr being captured. How would that work?
Like this: โโโ $mv file.txt dest.txt$ failed { echo "It seems that the file.txt does not exist" } โโโ
Knowing if a command failed and capturing stderr (which contains stuff like error messages) are not the same thing.