2 ms·
Unless you drop the requirement that the shell supports this type of usage: command arg1 arg2 ... then whatever is built to this requirement is going to f
by kazinator 10y ago
Unless you drop the requirement that the shell supports this type of usage:
command arg1 arg2 ...
then whatever is built to this requirement is going to feel decades old to some extent.
- chubot 10y agoWhy? There's nothing old about that syntax. On the contrary, I don't think anyone would use a shell WITHOUT the "cmd arg1 arg2" syntax. I certainly wouldn't want to. What feels ancient is the lack of good parse error messages and runtime error messages in bash. And syntax like a=X but not a = X or a = 'X' -- the difference being the spaces. And (echo hi) is OK for a subshell, but you need { echo hi; } for a group -- space and ; are required in the latter case, but not the former. The lack of proper functions in shell also feels ancient. For example, writing a completion function in bash is a pretty horrible experience. As another example, a simple function to escape HTML is either 'sed' or three statements like ${foo/&/&}, both of which are obtuse.