bug-bash
[Top][All Lists]
Advanced

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

Re: Builtin history -r does not work with named pipes (i.e. GNU readline


From: Chet Ramey
Subject: Re: Builtin history -r does not work with named pipes (i.e. GNU readline's histfile.c read_history_range)
Date: Mon, 29 May 2017 16:17:16 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

On 5/23/17 11:32 AM, Eduardo Bustamante wrote:
> (I think this is a good problem for Pranav to tackle if you consider
> this to be a bug, Chet).
> 
> The problem is that fstat(2) will return an st_size of 0 if the file
> is non-regular. I think that the easiest path here is to goto
> `error_and_exit' if `file' is not a regular file (and perhaps print a
> useful error message?).

So the bug is that readline doesn't print an error message if the history
file isn't a regular file?

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



reply via email to

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