@[email protected] to [email protected] • 6 months agoAmber - the programming language compiled to Bashamber-lang.comexternal-linkmessage-square92fedilinkarrow-up11arrow-down10file-textcross-posted to: linuxhackernews[email protected]programming
arrow-up11arrow-down1external-linkAmber - the programming language compiled to Bashamber-lang.com@[email protected] to [email protected] • 6 months agomessage-square92fedilinkfile-textcross-posted to: linuxhackernews[email protected]programming
minus-square@[email protected]OPlinkfedilink0•6 months agoLike this: ‘’’ $mv file.txt dest.txt$ failed { echo “It seems that the file.txt does not exist” } ‘’’
minus-square@[email protected]linkfedilink0•6 months agoKnowing if a command failed and capturing stderr (which contains stuff like error messages) are not the same thing.
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.