[Python-ideas] Option of running shell/console commands inside the REPL

Oleg Broytman phd at phdru.name
Sun Feb 3 08:00:21 EST 2019


On Sun, Feb 03, 2019 at 10:24:12PM +1100, Steven D'Aprano <steve at pearwood.info> wrote:
> I'm not sure what multiline editing is being referred to above. I 
> personally don't know of one in bash. It may be that you have to turn 
> the feature on -- by default, bash ships with a fair amount of stuff 
> turned off, and the rest hidden behind cryptic keystroke commands.

    shopt -s cmdhist

   From ``man bash``: "If set, bash attempts to save all lines of  a
multiple-line  command  in  the  same history entry.  This allows easy
re-editing of multi-line commands."

> -- 
> Steve

Oleg.
-- 
    Oleg Broytman            https://phdru.name/            phd at phdru.name
           Programmers don't die, they just GOSUB without RETURN.


More information about the Python-ideas mailing list