Re:Unix doesn’t follow the Unix philosophy
by cturner on Friday May 25, 2012 @09:58AM
(#4023463)
The scripting system could have been designed to make layering easier. Bourne descendants are ugly and awkward. Hence, unix evolved into a situation where ls had lots of features, whereas were there a better scripting system, we might have had a standard environment which you could introspect deeper and extend with more confidence.
[ Parent
| on HN ]
> The scripting system could have been designed to make layering easier.
How? sh sucks for anything involved, but I can't think of a way to simplify pipelines much.
A line oriented xargs could have been built in from day one.
A pair of shell variables honored by commands that let you specify output wrappers or separators would have been nice too. Think "-Q" in gnu ls, but universally supported and user-controlled.