bug-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: alex xmb ratchev
Subject: Re: problem with continuation prompt on newlines with history back
Date: Sat, 24 Jun 2023 02:45:04 +0200

On Sat, Jun 24, 2023, 02:23 Martin D Kealey <martin@kurahaupo.gen.nz> wrote:

> Hi Alex
>

hii


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.
>

i dunno of such modes
i run bash 5.2.15 by termux.apk package
i deleted all bash n profile files

then 1. when i c-r or arrow up to PS1 ..
the cmd is PS1=' $PWD

the cmd is not finished ...

else
it shows same symptons

bash-5.2$ PS1=' $PWD
> '
 /data/data/com.termux/files/home
PS1=' $PWD
> '
 /data/data/com.termux/files/home

: cmd

i dont know of history mode changes
. in earlier ( somewhen ) this was working ( complete cmd and no newline
miss on PS2 )

to me its just where cmd gets parsed , some misconfigurement , that doesnt
pass the \n to subvar

greets

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]