MelodiousFunk@slrpnk.net to Reaction Memes@lemmy.dbzer0.com · 4 days agoYou make an excellent pointslrpnk.netimagemessage-square4fedilinkarrow-up190arrow-down12
arrow-up188arrow-down1imageYou make an excellent pointslrpnk.netMelodiousFunk@slrpnk.net to Reaction Memes@lemmy.dbzer0.com · 4 days agomessage-square4fedilink
minus-squarefriend_of_satan@lemmy.worldlinkfedilinkEnglisharrow-up3·edit-24 days 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·3 days 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.