1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-24 06:54:13 +00:00
cde/src/cmd/ksh93/data
Martijn Dekker 5c677a4c6c Refactor the new 'times' builtin; zero-pad seconds (re: 65d363fd)
The output format is now identical to mksh's except for
the locale-dependent radix point ('.' or ',').

src/cmd/ksh93/bltins/misc.c:
- Output format tweak: pad seconds with initial zero if < 10.
- Use "too many operands" (e_toomanyops) error msg from 3ba4900e
  if there are operands, instead of "bad syntax" (e_badsyntax).
- Consolidate repetitive calculating and printing code
  into print_times().
- Get rid of some excessive variables.

src/cmd/ksh93/tests/builtins.sh:
- Update regression tests to match the above.

src/cmd/ksh93/data/builtins.c:
- Update sh_opttimes[] version string.
2020-06-24 14:32:20 +02:00
..
aliases.c Make 'stop' and 'suspend' regular built-ins 2020-06-22 15:36:29 +02:00
bash_pre_rc.sh Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
builtins.c Refactor the new 'times' builtin; zero-pad seconds (re: 65d363fd) 2020-06-24 14:32:20 +02:00
keywords.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
lexstates.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
limits.c Fix 80 typos in comments 2020-06-12 01:45:12 +02:00
math.tab Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
msg.c Make 'stop' and 'suspend' regular built-ins 2020-06-22 15:36:29 +02:00
options.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
signals.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
strdata.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
testops.c Remove code related to long-dead 3DFS research project 2020-06-12 01:45:17 +02:00
variables.c Fix unreliable behavior when special vars are readonly or unset (#27) 2020-06-20 18:08:41 +01:00