β² 1114 βΌ Feels more polite for sure. (sh.itjust.works) submitted 5 months ago by Lisk91@sh.itjust.works to c/linuxmemes@lemmy.world 93 comments fedilink hide all child comments
[β] wildbus8979@sh.itjust.works 73 points 5 months ago* (last edited 5 months ago) (3 children) alias thanks="echo 'You are most welcomed'" please shutdown; thanks permalink fedilink source hideshow 6 child comments replies: [β] nymnympseudonym@piefed.social 77 points 5 months ago (1 child) alias sudo fucking fucking systemctl restart firewalld.service fucking shutdown permalink fedilink source parent hideshow 2 child comments replies: [β] thejml@sh.itjust.works 56 points 5 months ago (3 children) Reminds me of my favorite command line utility. permalink fedilink source parent hideshow 6 child comments replies: [β] Glitterkoe@lemmy.world 11 points 5 months ago Kind stranger; you made my day permalink fedilink source parent [β] ramasses@social.ozymandias.club 7 points 5 months ago (1 child) Is their a still maintained fork? permalink fedilink source parent hideshow 2 child comments replies: [β] shrek_is_love@lemmy.ml 13 points 5 months ago I use Pay Respects now permalink fedilink source parent [β] Fmstrat@lemmy.world 5 points 5 months ago Unfortunately no longer maintained, but in case you didn't see the other reply: https://codeberg.org/iff/pay-respects permalink fedilink source parent [β] shrek_is_love@lemmy.ml 20 points 5 months ago (1 child) I know this is a meme and not GitHub, but I thought some people might like to learn that if you do please shutdown && thanks it won't say you're welcome if the shutdown failed permalink fedilink source parent hideshow 2 child comments replies: [β] juipeltje@lemmy.world 1 point 5 months ago (2 children) Wait, isn't it the other way around? I thought ; only executed the next command if the previous one succeeded, and && executed the next command regardless of exit status. permalink fedilink source parent hideshow 4 child comments replies: [β] wildbus8979@sh.itjust.works 11 points 5 months ago* (1 child) No, OP is correct, && only continues on exit 0. || For anything but zero, ; just chains another command. permalink fedilink source parent hideshow 2 child comments replies: [β] juipeltje@lemmy.world 2 points 5 months ago (1 child) Ah yes you're right, had to look it up to see for myself. It's weird because i remember specifically changing some of my &&s for ; instead because i wanted it to not continue if exit wasn't zero, but i must've misread it at the time. Time to change it back i guess lol. permalink fedilink source parent hideshow 2 child comments replies: [β] JackbyDev@programming.dev 3 points 5 months ago It makes more sense if you think of semicolons like other programming languages like Java and C use it. foo(); bar(); But those languages allow foo(); bar(); as well. Then && works like a normal short circuited expression (with side effects). permalink fedilink source parent [β] Fmstrat@lemmy.world 3 points 5 months ago Partly right in bash: set -e; echo 1; echo 2; is the same as echo 1 && echo 2 So if you see the -e in a script, it's to keep the function clean. permalink fedilink source parent [β] cypherpunks@lemmy.ml 11 points 5 months ago* (1 child) alias thanks="You are most welcomed" you need to use the echo command if you want to echo something: alias thanks="echo 'You are most welcomed'" (the inner single-quotes are not strictly required in this case, but recommended nonetheless) permalink fedilink source parent hideshow 2 child comments replies: [β] wildbus8979@sh.itjust.works 6 points 5 months ago* Huh yeah my bad, wrote this too fast in-between two messages at work permalink fedilink source parent
[β] nymnympseudonym@piefed.social 77 points 5 months ago (1 child) alias sudo fucking fucking systemctl restart firewalld.service fucking shutdown permalink fedilink source parent hideshow 2 child comments replies: [β] thejml@sh.itjust.works 56 points 5 months ago (3 children) Reminds me of my favorite command line utility. permalink fedilink source parent hideshow 6 child comments replies: [β] Glitterkoe@lemmy.world 11 points 5 months ago Kind stranger; you made my day permalink fedilink source parent [β] ramasses@social.ozymandias.club 7 points 5 months ago (1 child) Is their a still maintained fork? permalink fedilink source parent hideshow 2 child comments replies: [β] shrek_is_love@lemmy.ml 13 points 5 months ago I use Pay Respects now permalink fedilink source parent [β] Fmstrat@lemmy.world 5 points 5 months ago Unfortunately no longer maintained, but in case you didn't see the other reply: https://codeberg.org/iff/pay-respects permalink fedilink source parent
[β] thejml@sh.itjust.works 56 points 5 months ago (3 children) Reminds me of my favorite command line utility. permalink fedilink source parent hideshow 6 child comments replies: [β] Glitterkoe@lemmy.world 11 points 5 months ago Kind stranger; you made my day permalink fedilink source parent [β] ramasses@social.ozymandias.club 7 points 5 months ago (1 child) Is their a still maintained fork? permalink fedilink source parent hideshow 2 child comments replies: [β] shrek_is_love@lemmy.ml 13 points 5 months ago I use Pay Respects now permalink fedilink source parent [β] Fmstrat@lemmy.world 5 points 5 months ago Unfortunately no longer maintained, but in case you didn't see the other reply: https://codeberg.org/iff/pay-respects permalink fedilink source parent
[β] Glitterkoe@lemmy.world 11 points 5 months ago Kind stranger; you made my day permalink fedilink source parent
[β] ramasses@social.ozymandias.club 7 points 5 months ago (1 child) Is their a still maintained fork? permalink fedilink source parent hideshow 2 child comments replies: [β] shrek_is_love@lemmy.ml 13 points 5 months ago I use Pay Respects now permalink fedilink source parent
[β] shrek_is_love@lemmy.ml 13 points 5 months ago I use Pay Respects now permalink fedilink source parent
[β] Fmstrat@lemmy.world 5 points 5 months ago Unfortunately no longer maintained, but in case you didn't see the other reply: https://codeberg.org/iff/pay-respects permalink fedilink source parent
[β] shrek_is_love@lemmy.ml 20 points 5 months ago (1 child) I know this is a meme and not GitHub, but I thought some people might like to learn that if you do please shutdown && thanks it won't say you're welcome if the shutdown failed permalink fedilink source parent hideshow 2 child comments replies: [β] juipeltje@lemmy.world 1 point 5 months ago (2 children) Wait, isn't it the other way around? I thought ; only executed the next command if the previous one succeeded, and && executed the next command regardless of exit status. permalink fedilink source parent hideshow 4 child comments replies: [β] wildbus8979@sh.itjust.works 11 points 5 months ago* (1 child) No, OP is correct, && only continues on exit 0. || For anything but zero, ; just chains another command. permalink fedilink source parent hideshow 2 child comments replies: [β] juipeltje@lemmy.world 2 points 5 months ago (1 child) Ah yes you're right, had to look it up to see for myself. It's weird because i remember specifically changing some of my &&s for ; instead because i wanted it to not continue if exit wasn't zero, but i must've misread it at the time. Time to change it back i guess lol. permalink fedilink source parent hideshow 2 child comments replies: [β] JackbyDev@programming.dev 3 points 5 months ago It makes more sense if you think of semicolons like other programming languages like Java and C use it. foo(); bar(); But those languages allow foo(); bar(); as well. Then && works like a normal short circuited expression (with side effects). permalink fedilink source parent [β] Fmstrat@lemmy.world 3 points 5 months ago Partly right in bash: set -e; echo 1; echo 2; is the same as echo 1 && echo 2 So if you see the -e in a script, it's to keep the function clean. permalink fedilink source parent
[β] juipeltje@lemmy.world 1 point 5 months ago (2 children) Wait, isn't it the other way around? I thought ; only executed the next command if the previous one succeeded, and && executed the next command regardless of exit status. permalink fedilink source parent hideshow 4 child comments replies: [β] wildbus8979@sh.itjust.works 11 points 5 months ago* (1 child) No, OP is correct, && only continues on exit 0. || For anything but zero, ; just chains another command. permalink fedilink source parent hideshow 2 child comments replies: [β] juipeltje@lemmy.world 2 points 5 months ago (1 child) Ah yes you're right, had to look it up to see for myself. It's weird because i remember specifically changing some of my &&s for ; instead because i wanted it to not continue if exit wasn't zero, but i must've misread it at the time. Time to change it back i guess lol. permalink fedilink source parent hideshow 2 child comments replies: [β] JackbyDev@programming.dev 3 points 5 months ago It makes more sense if you think of semicolons like other programming languages like Java and C use it. foo(); bar(); But those languages allow foo(); bar(); as well. Then && works like a normal short circuited expression (with side effects). permalink fedilink source parent [β] Fmstrat@lemmy.world 3 points 5 months ago Partly right in bash: set -e; echo 1; echo 2; is the same as echo 1 && echo 2 So if you see the -e in a script, it's to keep the function clean. permalink fedilink source parent
[β] wildbus8979@sh.itjust.works 11 points 5 months ago* (1 child) No, OP is correct, && only continues on exit 0. || For anything but zero, ; just chains another command. permalink fedilink source parent hideshow 2 child comments replies: [β] juipeltje@lemmy.world 2 points 5 months ago (1 child) Ah yes you're right, had to look it up to see for myself. It's weird because i remember specifically changing some of my &&s for ; instead because i wanted it to not continue if exit wasn't zero, but i must've misread it at the time. Time to change it back i guess lol. permalink fedilink source parent hideshow 2 child comments replies: [β] JackbyDev@programming.dev 3 points 5 months ago It makes more sense if you think of semicolons like other programming languages like Java and C use it. foo(); bar(); But those languages allow foo(); bar(); as well. Then && works like a normal short circuited expression (with side effects). permalink fedilink source parent
[β] juipeltje@lemmy.world 2 points 5 months ago (1 child) Ah yes you're right, had to look it up to see for myself. It's weird because i remember specifically changing some of my &&s for ; instead because i wanted it to not continue if exit wasn't zero, but i must've misread it at the time. Time to change it back i guess lol. permalink fedilink source parent hideshow 2 child comments replies: [β] JackbyDev@programming.dev 3 points 5 months ago It makes more sense if you think of semicolons like other programming languages like Java and C use it. foo(); bar(); But those languages allow foo(); bar(); as well. Then && works like a normal short circuited expression (with side effects). permalink fedilink source parent
[β] JackbyDev@programming.dev 3 points 5 months ago It makes more sense if you think of semicolons like other programming languages like Java and C use it. foo(); bar(); But those languages allow foo(); bar(); as well. Then && works like a normal short circuited expression (with side effects). permalink fedilink source parent
[β] Fmstrat@lemmy.world 3 points 5 months ago Partly right in bash: set -e; echo 1; echo 2; is the same as echo 1 && echo 2 So if you see the -e in a script, it's to keep the function clean. permalink fedilink source parent
[β] cypherpunks@lemmy.ml 11 points 5 months ago* (1 child) alias thanks="You are most welcomed" you need to use the echo command if you want to echo something: alias thanks="echo 'You are most welcomed'" (the inner single-quotes are not strictly required in this case, but recommended nonetheless) permalink fedilink source parent hideshow 2 child comments replies: [β] wildbus8979@sh.itjust.works 6 points 5 months ago* Huh yeah my bad, wrote this too fast in-between two messages at work permalink fedilink source parent
[β] wildbus8979@sh.itjust.works 6 points 5 months ago* Huh yeah my bad, wrote this too fast in-between two messages at work permalink fedilink source parent