News for hackers. Stuff that matters.
Re:Ask HN: What do you love/hate about terminals? Would you ... by adambyrtek on Wednesday December 27, 2017 @05:57PM (#16018808)
Of course you could always do better, but the specific feature mentioned in the parent comment (completing flags for "tar" instead of checking the man page) has been around for ages.

Regarding contextual analysis, the fundamental problem is that command execution relies on a list of strings (argv) with no types or meaning. Each command is responsible for parsing its own arguments, either manually or using a shared library (e.g. getopt). This provides loose coupling and flexibility, but makes introspection really difficult, and features like completions become an afterthought reimplemented in every shell either by special cases for each command or hacks like parsing help messages.

There are no comments on this comment yet.