MelodiousFunk@slrpnk.net to Reaction Memes@lemmy.dbzer0.com · 1 month agoYou make an excellent pointslrpnk.netimagemessage-square4fedilinkarrow-up193arrow-down13
arrow-up190arrow-down1imageYou make an excellent pointslrpnk.netMelodiousFunk@slrpnk.net to Reaction Memes@lemmy.dbzer0.com · 1 month agomessage-square4fedilink
minus-squarefriend_of_satan@lemmy.worldlinkfedilinkEnglisharrow-up3·edit-21 month agoIt’s used by the true command as the source of truth for what the return code is. Edit: I found a copy of the file and verified it: $ xxd -c 8 true.dat | head -n 4 00000000: 0000 0000 0000 0000 ........ 00000008: 0000 0000 0000 0000 ........ 00000010: 0000 0000 0000 0000 ........ 00000018: 0000 0000 0000 0000 ........ $ As you can see, it’s all zeroes, which is what the return code for true should always be.
minus-squareMelodiousFunk@slrpnk.netOPlinkfedilinkarrow-up1·1 month agoThe true knowledge is always in the comments.
It’s used by the
true
command as the source of truth for what the return code is.Edit: I found a copy of the file and verified it:
$ xxd -c 8 true.dat | head -n 4 00000000: 0000 0000 0000 0000 ........ 00000008: 0000 0000 0000 0000 ........ 00000010: 0000 0000 0000 0000 ........ 00000018: 0000 0000 0000 0000 ........ $
As you can see, it’s all zeroes, which is what the return code for
true
should always be.The true knowledge is always in the comments.