# Korn shell maintenance record
Guide: https://yenra.com/korn-shell-script-programming/
Use on a copied script with synthetic data and the actual deployment interpreter.
Original script hash; source location; purpose; operator:
Shebang; resolved interpreter path; package/version; OS:
Invocation (scheduler/service/user); arguments; working directory; environment:
Inputs and encoding; outputs; side effects; external commands and versions:
Expected normal stdout/stderr/status; empty-input behavior:
Fixtures: spaces, leading dash, empty line, missing final newline, invalid data:
Failure checks: missing file, permission error, unavailable dependency:
Before/after result for each fixture (stdout, stderr, status, changed files):
Version-specific constructs to investigate: arrays, namerefs, arithmetic, coprocesses:
Compatibility sources consulted and remaining uncertainties:
Change rationale; reviewer; rollback copy; deployment check:
Record KSH_VERSION by running the verified interpreter on a harmless probe; the
SHELL environment variable alone does not identify the interpreter running a job.
A syntax-only check does not exercise dependencies or side effects. Keep trace
output private when it contains substituted values. Test in the actual environment.
Source: https://github.com/ksh93/ksh
