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

Chet Ramey <[email protected]>
Newsgroups gmane.comp.shells.bash.bugs
Organization ITS, Case Western Reserve University
Message-ID <[email protected]>
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    [email protected]    http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc (application/pgp-signature, 203 B)
-----BEGIN PGP SIGNATURE-----

wmMEABEIACMWIQR8ATX7CIqvbGbGULm7WGnwZOp0qwUCaW+30QUDAAAAAAAKCRC7WGnwZOp0q/q6
AKCEDYEaMTzzkQjl7hzrMkDRXjahXgCeL9GkTa4T7LHvIQdkqmu9o503aCs=
=xbST
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.