Skip to content
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

JIT for ksh #65

Closed
mcandre opened this issue Aug 11, 2017 · 1 comment
Closed

JIT for ksh #65

mcandre opened this issue Aug 11, 2017 · 1 comment

Comments

@mcandre
Copy link

mcandre commented Aug 11, 2017

plz

@krader1961
Copy link
Contributor

Sorry, but this will never be implemented. It certainly can't be implemented before we change the build tool change, fix all the failing unit tests, remove support for long dead operating systems, fix all the lint warnings, etcetera. In other words it will be several years before this could even be reasonably be discussed as a priority. If ksh is still being used and supported then someone will likely make the same request. 😄 So for now this should be closed as infeasible.

@krader1961 krader1961 added this to the will-not-fix milestone Nov 20, 2017
citrus-it pushed a commit to citrus-it/ast that referenced this issue Apr 15, 2021
This commit changes the behavior of four date formats accepted
by 'printf %()T' because the old behavior is not compatible with
modern implementations of date(1):
- %k and %l now return a blank-padded hour, the former based on a
  24-hour clock and the latter a 12-hour clock (these are common
  extensions present on Linux and *BSD).
- %f now returns a date with the format '%Y.%m.%d-%H:%M:%S'
  (BusyBox extension).
- %q now returns the quarter of the current year (GNU extension).

src/cmd/ksh93/data/builtins.c:
- Copy the date format documentation from date in libcmd to
  the printf man page (for documenting 'printf %T').

src/cmd/ksh93/tests/builtins.sh:
- Add four regression tests for the changed date formats.

src/cmd/ksh93/sh.1:
- Remove inaccurate information about the date formats accepted by
  printf %T'. The KornShell uses a custom version of strftime(3)
  that isn't guaranteed to accepts the same formats as the native
  strftime function.

src/lib/libast/tm/tmxfmt.c:
- Change the behavior of %f, %k, %l and %q to the common behavior.
  %k and %l are implemented as aliases to %_H and %_I to avoid
  duplicating code.

src/lib/libcmd/date.c:
- Update the documentation for the AST date command since it is
  also affected by the changes to 'printf %T'.

Fixes att#62
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants