bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: history -r should print error message if file doesn't exist


From: Chet Ramey
Subject: Re: history -r should print error message if file doesn't exist
Date: Tue, 20 Jan 2026 12:13:53 -0500
User-agent: Mozilla Thunderbird

On 1/18/26 8:56 PM, Ángel wrote:

Quite the opposite. I understand in that message that Chet is agreeing
with jidanni
(although I think this depends on the builtin, rather than on errno. I
can't think on an
errno returned when opening/reading a file you would /not/ want
reported for an utility
like history -r)

We're only talking about the history builtin here, so there are a few
values of errno (ENOENT/EIO/EISDIR/EACCESS) where printing an error
message is appropriate.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]