syd to Programming@programming.dev · 1 year agoAmber - the programming language compiled to Bashamber-lang.comexternal-linkmessage-square92linkfedilinkarrow-up1215arrow-down18file-textcross-posted to: programming@hexbear.netprogramming@programming.dev
arrow-up1207arrow-down1external-linkAmber - the programming language compiled to Bashamber-lang.comsyd to Programming@programming.dev · 1 year agomessage-square92linkfedilinkfile-textcross-posted to: programming@hexbear.netprogramming@programming.dev
minus-squaresydOPlinkfedilinkarrow-up1arrow-down2·1 year agoLike this: ‘’’ $mv file.txt dest.txt$ failed { echo “It seems that the file.txt does not exist” } ‘’’
minus-squareyetAnotherUser@lemmy.calinkfedilinkarrow-up4·1 year 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.