News for hackers. Stuff that matters.
Re:Forget Flags and Scripts: Just Rename the File by Quarrelsome on Wednesday March 18, 2026 @01:02AM (#47421764)
this is satire, right?
Re:Forget Flags and Scripts: Just Rename the File by usefulcat on Wednesday March 18, 2026 @01:21AM (#47421841)
It may be a bit uncommon, but it's not at all new. For example, on a Linux system I have, there are several files in /usr/bin that use hard links to refer to the same file (inode) by different names:

bunzip2 / bzcat / bzip2

gunzip / uncompress

unzip / zipinfo

pigz / unpigz

pkg-config / x86_64-pc-linux-gnu-pkg-config

perlbug / perlthanks

Use ls -li to show the inode number for each file or directory. For example:

    $ ls -li /usr/bin/{bzip2,bunzip2,bzcat}
    23069197 -rwxr-xr-x 3 root root 39144 Sep  5  2019 /usr/bin/bunzip2
    23069197 -rwxr-xr-x 3 root root 39144 Sep  5  2019 /usr/bin/bzcat
    23069197 -rwxr-xr-x 3 root root 39144 Sep  5  2019 /usr/bin/bzip2
Re:Forget Flags and Scripts: Just Rename the File by tehbeard on Wednesday March 18, 2026 @02:43AM (#47422315)
That's more a case of providing the distinct "APIs" ( bzip2 , gunzip etc) to userland / scripts, while the implementation for all is just one binary; than it being "Configuration via name..."

Somewhat similar to how busybox does its thing.

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
Re:Forget Flags and Scripts: Just Rename the File by Cthulhu_ on Wednesday March 18, 2026 @03:07AM (#47422468)
I'd say "kind of", because it's ridiculous on the surface but could be a handy trick. If only to be aware that an executable gets told its own name.
Re:Forget Flags and Scripts: Just Rename the File by frizlab on Wednesday March 18, 2026 @05:51AM (#47423594)
I have used that in a project of my own[0] for convenience (avoid duplicated code), but it is uncommon, yes.

I truly think it should be avoided in general, especially when what you actually want (in OP’s article) is a config file.

[0] https://github.com/Frizlab/frizlabs-conf/blob/44030f4123e683... (w/ that, also see the aliases in the folder of the script)