syd@lemy.lol to Programming@programming.dev · 4 months agoAmber - the programming language compiled to Bashamber-lang.comexternal-linkmessage-square6fedilinkarrow-up11arrow-down10file-textcross-posted to: programming@hexbear.net
arrow-up11arrow-down1external-linkAmber - the programming language compiled to Bashamber-lang.comsyd@lemy.lol to Programming@programming.dev · 4 months agomessage-square6fedilinkfile-textcross-posted to: programming@hexbear.net
minus-squaresyd@lemy.lolOPlinkfedilinkarrow-up0arrow-down1·4 months agoLike this: ‘’’ $mv file.txt dest.txt$ failed { echo “It seems that the file.txt does not exist” } ‘’’
minus-squareyetAnotherUser@lemmy.calinkfedilinkarrow-up1·4 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.