Hacker News new | ask | show | jobs
by soneil 660 days ago
I was going to say it'd be easier to have a single script, eg

    #!/bin/sh
    busybox $0 $@
and then every command required could just be a hardlink to the same script, instead of replicating it over and over again for hardcoded command names.

Then I realised the whole point is to posit a world where $0 doesn't exist, and we're not allowed to be clever about it.

1 comments

In such a world, shells would probably have something like a $SCRIPT_NAME to work around this.