Story Details

  • The history and use of /etc./glob in early Unixes

    Posted: 2025-01-13 05:44:29

    /etc/glob was an early Unix mechanism (predating regular expressions) allowing users to create named patterns representing sets of filenames, simplifying command-line operations. These patterns, using globbing characters like * and ?, were stored in /etc/glob and could be referenced by name prefixed with g. While conceptually powerful, /etc/glob suffered from limited wildcard support and was eventually superseded by more powerful and flexible tools like shell globbing and regular expressions. Its existence offers a glimpse into the evolution of filename pattern matching and Unix's pursuit of concise yet powerful user interfaces.

    Summary of Comments ( 23 )
    https://news.ycombinator.com/item?id=42680437

    HN commenters discuss the blog post's exploration of /etc/glob in early Unix. Several highlight the post's clarification of the mechanism's purpose, not as filename expansion (handled by the shell), but as a way to store user-specific command aliases predating aliases and shell functions. Some commenters share anecdotes about encountering this archaic feature, while others express fascination with this historical curiosity and the evolution of Unix. The overall sentiment is appreciation for the post's shedding light on a forgotten piece of Unix history and prompting reflection on how modern systems have evolved. Some debate the actual impact and usage prevalence of /etc/glob, with some suggesting it was likely rarely used even in early Unix.