help-bash
[Top][All Lists]
Advanced

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

Re: problem with continuation prompt on newlines with history back


From: Martin D Kealey
Subject: Re: problem with continuation prompt on newlines with history back
Date: Sat, 24 Jun 2023 10:23:01 +1000

Hi Alex

Is your history set to line mode or command mode? This changes whether
recalling a multi-line history item gets put in the input buffer all at
once or only one line of it, and that in turn changes whether you see PS2
in between the lines.

On Sat, 24 Jun 2023, 03:34 alex xmb ratchev, <fxmbsw7@gmail.com> wrote:

> hi ..
> i was trying in termux
>
> --------
> PS1=' $PWD
> > '
>  /data/data/com.termux/files/home
> PS1=' $PWD
> > '
>  /data/data/com.termux/files/home
>
>
> -------
> 1. i entered with one newline
> np
>
> 2. i pressed up , 1. del ( make the ' away to continue ) and press enter ..
> the prompt continuation prompt is shown , without the newline in between (
> looks same as before one )
> but when then ' and enter , the PS1 has two \n s as wanted
> .. its just about the prompt continuation
>
> greets
>


reply via email to

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