RustyNova@lemmy.world to linuxmemes@lemmy.world · 6 days agoUnix purists bullies another projectlemmy.worldimagemessage-square23linkfedilinkarrow-up132arrow-down10file-text
arrow-up132arrow-down1imageUnix purists bullies another projectlemmy.worldRustyNova@lemmy.world to linuxmemes@lemmy.world · 6 days agomessage-square23linkfedilinkfile-text
minus-squareChaoticNeutralCzech@feddit.orglinkfedilinkEnglisharrow-up2·5 days agoYes, like gzip and gunzip
minus-squarethevoidzero@lemmy.worldlinkfedilinkarrow-up1·5 days agoWhat if I write a program that checks argv[0] to decide which part of the code to run, and makes a bunch of symlinks
minus-squareThreeKnew@lemdro.idlinkfedilinkEnglisharrow-up1·5 days agoThen that would kind of defeat the purpose But it’s not like you /have/ to adhere to the Unix philosophy or anything
minus-squareCrumblyLiquid@lemmy.mllinkfedilinkarrow-up0·edit-25 days agoThat’s actually what BusyBox does I think. You have one executable for everything and it changes the behavior according to argv[0].
Yes, like
gzipandgunzipWhat if I write a program that checks argv[0] to decide which part of the code to run, and makes a bunch of symlinks
Then that would kind of defeat the purpose
But it’s not like you /have/ to adhere to the Unix philosophy or anything
That’s actually what BusyBox does I think. You have one executable for everything and it changes the behavior according to argv[0].