On Tue, Mar 21, 2017 at 11:59 AM, Chet Ramey <chet.ra...@case.edu> wrote:
>> As a special case, `fc -l -0' usually prints itself but not in the
>> empty history (or HISTSIZE=1) case.
>
> Yeah, that's a special case, but not when there are no commands in
> the history list.

Thanks for the explanation. FWIW my less-degenerate use case was
getting the just-entered command in PS0 but `history 1' should
probably do just as well in this case.

Reply via email to