Re:/usr/bin/time: not the command you think you know
by zwp on Tuesday March 07, 2017 @03:09AM
(#13808973)
I too don't see how it is useful but it's certainly a thing. The Solaris implementation looks like this:
I just noticed that the what(1)-string (I haven't seen on of those for a long time) references "alias.sh", perhaps this is a clue?
Were builtins actually aliases in an early shell? I still don't understand how this works though.
[ Parent
| on HN ]
Re:/usr/bin/time: not the command you think you know
by tyingq on Tuesday March 07, 2017 @08:29AM
(#13810103)
That's a funny implementation. It would end up being an infinite loop for any command that wasn't a builtin, or didn't have an identically named thing higher up the PATH. Like if you renamed it from /usr/bin/cd to /usr/bin/mycd.