HomeFreeBSD

sh: implement PS1 \D to print current time

Description

sh: implement PS1 \D to print current time

\D{format} yields the result of calling strftime(3) with the provided
format and the current time.

When PS4 can use this, it will enable us to easily generate timestamps
when tracing script execution.

Differential Revision: https://reviews.freebsd.org/D35840

Details

Provenance
pstefAuthored on Jan 1 2023, 7:38 PM
Differential Revision
D35840: sh: implement PS1 \D to print current time
Parents
rGf80babf906b7: kern_sysctl: Make name2oid() non-destructive to the name
Branches
Unknown
Tags
Unknown