syd@lemy.lol to Programming@programming.dev · 1 month agoAmber - the programming language compiled to Bashamber-lang.comexternal-linkmessage-square83fedilinkarrow-up1200arrow-down18file-textcross-posted to: hackernews@lemmy.smeargle.fansprogramming@programming.dev
arrow-up1192arrow-down1external-linkAmber - the programming language compiled to Bashamber-lang.comsyd@lemy.lol to Programming@programming.dev · 1 month agomessage-square83fedilinkfile-textcross-posted to: hackernews@lemmy.smeargle.fansprogramming@programming.dev
minus-squaresyd@lemy.lolOPlinkfedilinkarrow-up1arrow-down1·1 month agoLike this: ‘’’ $mv file.txt dest.txt$ failed { echo “It seems that the file.txt does not exist” } ‘’’
minus-squareyetAnotherUser@lemmy.calinkfedilinkarrow-up3·1 month 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.