日期的 %h 和 %b 格式代码产生相同输出的历史原因?

pjd*_*pjd 5 bash date

date's%h%b格式代码产生相同的输出是否有历史原因?

$ echo $(date +\%h)
Mar

$ echo $(date +\%b)
Mar
Run Code Online (Sandbox Code Playgroud)

date格式代码中也存在其他冗余,但今天早上引起了我的注意。另请参阅此页面

mea*_*ace 1

根据http://linux.die.net/man/3/strftime%h它位于单一 UNIX 规范(下面用“SU”表示)中,但%b并非如此。

%b
The abbreviated month name according to the current locale.

%h
Equivalent to %b. (SU)
Run Code Online (Sandbox Code Playgroud)

这是我能找到的唯一区别。man date//strptimestrftime包含此信息。