bug-bash
[Top][All Lists]
Advanced

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

Re: Bug: terminal width incorrect if changed in child process


From: Chet Ramey
Subject: Re: Bug: terminal width incorrect if changed in child process
Date: Fri, 28 Jul 2006 19:53:40 -0400
User-agent: Thunderbird 1.5.0.4 (Macintosh/20060530)

Devin Landes wrote:
> PLATFORM
> bashver 3.00.16(1)-release
> hardware: intel 32 bit
> os: fedora core 4
> 
> BUG
> If the terminal width is changed while a child process of bash is
> running (e.g. less), bash does not notice the change when it regains
> control and line wrapping for the commandline works incorrectly.
> 
> RECREATE
> make terminal width very narrow (like 10 chars)
> run bash
> run less
> make terminal width wide again
> exit less
> type in a long command on the commandline
> 
> FIX
> bash should query the terminal size (and possibly other similar info
> that might have changed) when returning from a child process.

Please read the description of the `checkwinsize' shell option in the
man page, under the description of the `shopt' builtin.

This issue is also covered by question E11 in the Bash FAQ.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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