help-bash
[Top][All Lists]
Advanced

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

Re: Repeat last n commands


From: Alex fxmbsw7 Ratchev
Subject: Re: Repeat last n commands
Date: Mon, 27 Sep 2021 17:00:25 +0200

there is no such command i know, .. the what you described can be maybe
done with bash inline scripting..

i can maybe write such when i get on my compy, when you can detail some
[more]

the marker then wont be a line n but some cmd marking begin and end, and a
cmd to specify modifications wanted and doing

On Mon, Sep 27, 2021, 16:39 Julius Hamilton <juliushamilton100@gmail.com>
wrote:

> Hey,
>
> Sometimes I am writing a method in a live Python shell (respectively in
> Termux, which uses Bash) and I make a mistake and the method definition is
> cancelled and I'd like to redo all executed lines up to the erroneous one.
>
> I believe that the ability to re-execute the last n lines would be part of
> bash rather than Python, is that correct?
>
> Is there any such command?
>
> Thanks very much,
> Julius
>


reply via email to

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