News for hackers. Stuff that matters.
Re:Forget Flags and Scripts: Just Rename the File by belkinpower on Wednesday March 18, 2026 @01:05AM (#47421778)
This is already how busybox works. These examples are taking it to a more extreme level but it's not _that_ crazy.
Re:Forget Flags and Scripts: Just Rename the File by zahlman on Wednesday March 18, 2026 @01:28AM (#47421867)
AIUI, on Windows, pip (via the vendored `distlib`) also makes stub executables that work this way to implement the "entry points" defined in installed wheels. See: https://github.com/pypa/distlib/blob/master/PC/ReadMe.txt