coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

date: invalid format items should be emitted verbatim, and not cause an error

Open BenWiederhake opened this issue 6 months ago • 0 comments

%s is the field for "number of seconds since UNIX epoch", and is the field for "doesn't make sense, so just emit verbatim".

$ date +%?
%?
$ cargo run -q date +%?
date: invalid format %?
[$? = 1]
$ date +%ö
%ö
$ cargo run -q date +%ö
date: invalid format %ö
[$? = 1]

Found while revising #6142.

This issue is closely related, but not identical to, #6398.

BenWiederhake avatar Aug 11 '24 21:08 BenWiederhake