Now I'm wondering who invented long options and who decided that the long option for t should be --list instead of --table in tar...

@vaporeon_ i wonder if whichever implementation of tar added the long options has its git history available, could search it for the string --list and git blame that line

though idk if the string --list would actually be in it anywhere, it might detect --, strip it off, and shunt it over to an argument parsing function or something. like a if (!strcmp(argv[i], "--")) { parseArg(argv[i]+2); } kind of deal. i hope that works, i haven't written C since the first life forms began crawling their way out of the sea to evolve adaptations that allowed it to exist on land

@monorail GNU tar has git history available at git.savannah.gnu.org/git/tar.g, and the history starts from 1994! (When git didn't exist yet, but presumably they imported it from another version control system...)

Commit 54694ee258a974a6c8a9710718500f58c74cd257 by François Pinard on 16th November 1994 is the oldest version that seems actually complete, if I checkout the commit directly before that, then tar.c is missing... And that commit already has the long options!

Follow

@vaporeon_ @monorail i would imagine being a GNU purrogram that it just uses GNU-extended getopt(3)

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.