Post A0Sh6rUjjpYCV9Uh6W by jerky@busshi.moe
(DIR) More posts by jerky@busshi.moe
(DIR) Post #A0SdUn5ZN52HyCsRBQ by toast@toast.cafe
2020-10-23T17:57:13.829959Z
2 likes, 0 repeats
broke: coreutilswoke: bsd utilsbespoke: coreutils implemented in shell (or shell-like):brain10: "/bin/true is just an empty file marked executable"
(DIR) Post #A0Sdbtqads5WxSGCYq by tuxcrafting@pleroma.tuxcrafting.port0.org
2020-10-23T17:58:30.971601Z
0 likes, 0 repeats
@toast wouldn't that error
(DIR) Post #A0SddWBdaALI9gsQFc by toast@toast.cafe
2020-10-23T17:58:49.081234Z
1 likes, 0 repeats
@tuxcrafting I just sent you a screenshot of just that...you even faved it...
(DIR) Post #A0SdgPkZy9eR3tbM48 by tuxcrafting@pleroma.tuxcrafting.port0.org
2020-10-23T17:59:18.213105Z
1 likes, 0 repeats
@toast oh i didn't realize you read it and it was empty lol
(DIR) Post #A0SezZsicq5XwK6uMy by bkhl@mastodon.sdf.org
2020-10-23T18:13:10Z
0 likes, 0 repeats
@toast and /bin/false an empty file not marked executable?
(DIR) Post #A0SezeI2EeiRbzzBNw by toast@toast.cafe
2020-10-23T18:13:59.130846Z
0 likes, 0 repeats
@bkhl unfortunately not, mostly because it wouldn't get picked up by PATH searchesbut you can just make it be:#!/bin/shexit 1
(DIR) Post #A0Sf21YQi4AuLPmqqe by toast@toast.cafe
2020-10-23T18:14:25.796363Z
0 likes, 0 repeats
@bkhl assembly would work too but is kinda lame actually, we're not pdp anymore
(DIR) Post #A0SfdR5ajbbuFo8Zzk by bkhl@mastodon.sdf.org
2020-10-23T18:19:11Z
0 likes, 0 repeats
@toast who needs to use false in interactive shell though? Actually having no file should work too.I know it doesn't return 1, but it will still be false for shell purposes so should be fine.
(DIR) Post #A0SfdTvQBsG338P03k by toast@toast.cafe
2020-10-23T18:21:11.680455Z
0 likes, 0 repeats
@bkhl you get additional error output on stderr, which makes things more awkward to handle
(DIR) Post #A0Sh6rUjjpYCV9Uh6W by jerky@busshi.moe
2020-10-23T18:37:42Z
0 likes, 0 repeats
@toast > performing a fork and an exec just to get the number 0