= System Wide Change: time-1.8 = https://fedoraproject.org/wiki/Changes/time-1.8
Change owner(s): * Petr <ppisar AT redhat DOT com>
A new time tool version 1.8 has changed output format.
== Detailed Description == After many years a new 1.8 version of time tool was released. This version brings some noticeable changes:
License changed from (GPLv2+) to (GPLv3+ and GFDL). Additional exit codes are used to report measured command failures and failures to execute the command. A measured command failure is reported by default. See the first line in this output:
$ time /usr/bin/false Command exited with non-zero status 1 0.00user 0.00system 0:00.00elapsed 100%CPU (0avgtext+0avgdata 1196maxresident)k 0inputs+0outputs (0major+55minor)pagefaults 0swaps
In previous Fedora versions, the first line was printed only if -v option was specified. This is not true anymore and the line is printed by default. You can disable it with a new -q option:
$ time -q /usr/bin/false 0.00user 0.00system 0:00.00elapsed 100%CPU (0avgtext+0avgdata 1268maxresident)k 0inputs+0outputs (0major+55minor)pagefaults 0swaps
Because this violated POSIX mode, Fedora changed time-1.8 not to print the first line when invoked with -p option and upstream accepted the change so that future time versions will behave like Fedora. For Fedora users, there is no change in the POSIX mode output:
$ time -p /usr/bin/false real 0.00 user 0.00 sys 0.00
If you use time tool in your script without the -p option, then either adjust your script to expect different output, or add -q option. Be ware of portability across distributions using different time versions.
== Scope == * Proposal owners: The time package will be upgraded and patched to preserve output format in the POSIX mode.
* Other developers: Review their scripts and packages whether they use time' in non-POSIX mode and parse time's output. If they are affected, they should add -q option to the time command, or adjust their code do deal with the new first line.
* Release engineering: https://pagure.io/releng/issue/7153
* List of deliverables: Not affected
* Policies and guidelines: No change is needed.
* Trademark approval: No approval is needed.
devel-announce@lists.fedoraproject.org