bug-bash
[Top][All Lists]
Advanced

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

Re: Read builtin -e (readline) oddities


From: Chet Ramey
Subject: Re: Read builtin -e (readline) oddities
Date: Mon, 19 Jun 2017 12:06:02 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.0

On 6/18/17 9:39 PM, Eduardo A. Bustamante López wrote:

> #1
> Hit `C-x C-e' twice.  The value of PATH seems to be ignored for the second
> line.

The shell should ensure that the temporary env is preserved across the
entire execution of any builtin that can call parse_and_execute (like `fc'
and `read' when using `read -e').

> #2
> Spurious `;'s are inserted into the history.

The fc builtin (via edit_and_execute_command) shouldn't try to insert empty
lines into the history list.  The only time this can happen is via
`read -e'.

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



reply via email to

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