bug-bash
[Top][All Lists]
Advanced

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

Re: reporting a bug: output of a long line, longer than fits on winow-si


From: Chet Ramey
Subject: Re: reporting a bug: output of a long line, longer than fits on winow-size, breakes bash
Date: Mon, 11 Jul 2022 09:38:37 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

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    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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