Bug 63608 - Add a -c option to time(1) to display csh output
Summary: Add a -c option to time(1) to display csh output
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 1.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2004-03-01 19:50 UTC by John Baldwin
Modified: 2020-01-21 21:23 UTC (History)
4 users (show)

See Also:


Attachments
Added open -c and code to write csh compatible time into (4.83 KB, patch)
2015-08-16 01:06 UTC, Willem Jan Withagen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Baldwin freebsd_committer freebsd_triage 2004-03-01 19:50:14 UTC
Time(1)'s default output is inferior to the output from csh's time builtin command (less precision, etc.)  It would be nice to have a -c switch to time(1) that outputs the default csh format.  If one is feeling extra adventurous, one could also add a -f option that takes a format string similar to the csh time variable to use for formatting the output.

How-To-Repeat: Compare '/usr/bin/time echo foo' and 'tcsh -c time echo foo'.
Comment 1 josef freebsd_committer freebsd_triage 2004-03-06 13:55:37 UTC
Responsible Changed
From-To: freebsd-bugs->josef

I'll handle this one.
Comment 2 josef freebsd_committer freebsd_triage 2004-04-17 01:33:38 UTC
Responsible Changed
From-To: josef->freebsd-bugs

Release the PR, do not have any time in near future to work on this one.
Comment 3 Willem Jan Withagen 2015-08-16 01:06:06 UTC
Created attachment 159911 [details]
Added open -c and code to write csh compatible time into

Patch includes man page update as well.
Also made use of all flag variables consistent/global.
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2018-05-20 23:51:59 UTC
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017

Do
- Set Status to "Open"
Comment 5 Oleksandr Tymoshenko freebsd_committer freebsd_triage 2019-01-26 06:40:18 UTC
John, are you still interested in adding csh-style time(1) output or can this PR be closed?