Amitai Schleier

@schmonz@schmonz.com

Force multiplier.
Outcome improver.
Decision sharer.
Developer, leader, coach.
https://agilein3minut.es podcaster.
Musician.
Bad poet (award-winning).
JoinedApr 05, 2017 (@octodon.social)
SelfHostedMar 30, 2025
Pronounshe/they
Podcasthttps://agilein3minut.es
Consultancyhttps://latentagility.com
Morehttps://schmonz.com
0 ★ 0 ↺

Amitai Schleier »
@schmonz@schmonz.com

Free idea: try this template for your next shell script. What do you notice?

#!/bin/sh
set -e

main() {
:
}

main "$@"
exit $?

...

Laurent Bercot »
@ska@social.treehouse.systems

@schmonz I notice an unnecessary indirection

    ...
    1 ★ 0 ↺

    Amitai Schleier »
    @schmonz@schmonz.com

    @ska@treehouse.systems Computer doesn’t need it, that’s for sure. This pattern arose from having seen too many shell scripts where the humans forgot they’re allowed to want it, and maybe also don’t write enough shell to remember how.

      History