• 0 Posts
  • 143 Comments
Joined 1 year ago
cake
Cake day: June 26th, 2023

help-circle


















  • Yes. And many people here doesn’t seem to get that.

    I’m not a dev of any kind. I occasionally write some bash and awk scriots to automate some things and if I need some kind of plain text (non-binary) data format I prefer tsv over json.

    So why do I still get this? Is it just that many json advocates want to make sure others know json does support other data types than plain string?


  • I had several tests at the beginning of the script. These tests define the “low-level” functions based the capability of the shell. To test new features I “simply” ran all the necessary commands on the test environments (bash, busybox, toybox+mksh).

    The script would error out if some necessary capability was missing from the host system. It also had a feature to switch shell if it found a better one (preferring busybox and its internal tools).

    Yeah… It was tedious process. It was one of those “I’ll write a simple script. So simple that it’ll work on almost every posixy shell.”… rest is history.