On 7/10/22 8:35 AM, Anton Wessel wrote:
I am working with Kubuntu 22.04 and KNOPPIX 9.1, bash version is reported by KNOPPIX:

5.1.4(1)-release (i686-pc-linux-gnu)


My bash script contains many bash one-liners and comments.

The one-liners are put into the history list by code like:

history -s ': # <command>'

After this script had been run once, I can scroll back in the lines of history list.
I can stop scrolling when found a line, e.g.:

: # ps -Flwwc --sort=start_time -t $(tty)

Then I can remove the four characters at beginning of the line:

": # "

and can execute this command.


So far ok.


When a one-liner is long, longer than fits on current window size, then problems in bash occure.

This has nothing to do with what is the contents of the long line.

Bash is broken by the fact that window size is exceeded.

I can't reproduce this. It's probably your $PS1.

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

Reply via email to