-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'times' should be a special builtin #16
Comments
As Stéphane has pointed out on austin-group-l, the output of |
I'm laughing out loud (LOL!) because so many responses to my proposed changes have stated that adherence to POSIX is paramount. Yet the old ksh development team couldn't be bothered to spend what should take no more than a day (total time for all involved) to implement a POSIX compliant |
Verify that real and user mode times that are in the range [1.0, 2.0) are correctly reported. Related #16
Remove a buggy optimization for variables in subshells Fixes att#15
In ksh93, times is implemented as an alias to "{ { time;} 2>&1;}" and "command" as an alias to "command " (which means aliases are expanded after it).
That means that things like:
Don't work, so the times utility is not POSIX compliant.
"times" should be implemented as a special builtin.
More generally, even though allowed by POSIX, implementing builtin utilities as aliases is not a good idea IMO if only for the reasons detailed at:
http://thread.gmane.org/gmane.comp.standards.posix.austin.general/12485/focus=12568
The text was updated successfully, but these errors were encountered: