delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/11/16:14:56

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 11 Feb 2002 23:14:06 +0200
Message-Id: <200202112114.g1BLE6T14104@unix.simonwiesel.co.il>
From: "Ehud Karni" <ehud AT unix DOT simonwiesel DOT co DOT il>
To: sk DOT mail AT btinternet DOT com
Cc: Scott DOT Prive AT storigen DOT com, cygwin AT cygwin DOT com
Subject: Re: LINES environment variable
In-reply-to: <026a01c1b335$b17a85c0$01000001@sknet01> (message from Stephano
Mariani on Mon, 11 Feb 2002 19:52:53 -0000)
Organization: Mivtach-Simon Insurance agencies
Reply-to: ehud AT unix DOT simonwiesel DOT co DOT il
References: <026a01c1b335$b17a85c0$01000001 AT sknet01>
X-Mailer: Emacs 21.1.1 rmail (send-msg 1.106)
MIME-Version: 1.0

On Mon, 11 Feb 2002 19:52:53 -0000, Stephano Mariani <sk DOT mail AT btinternet DOT com> wrote:
> I am using the windows 2000 command prompt, which does not impose a
> limit (and is set to 80 anyway). Nevertheless, I tried this using rxvt
> and found that the variable was not set (I cant imagine that the
> environment variable was not `picked-up', something must be changing it,
> and I just haven't figured out why). I have tried this under linux and
> all was well, I am convinced that cygwin is involved.
> 
> I have also set the variable as part of the global environment, and
> after a reboot, found that all non-cygwin processes reported the correct
> value, whereas cygwin processes did not.
> 
> I will investigate when I have some more time.

May I point you to 2 paragraphs in the `bash' man page (2.05):

  LINES  Used by the select builtin command to determine the column length for print-
         ing selection lists.  Automatically set upon receipt of a SIGWINCH.

  COLUMNS
         Used  by  the  select  builtin  command to determine the terminal width when
         printing selection lists.  Automatically set upon receipt of a SIGWINCH.
and
   checkwinsize
         If set, bash checks the window size after each command and, if necessary,
         updates the values of LINES and COLUMNS.

So bash is actively updating the `LINES' and `COLUMNS' (only if they
are already in the environment). I hope this clarify the situation.

Ehud.


-- 
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 mailto:ehud AT unix DOT simonwiesel DOT co DOT il          Better  Safe  Than  Sorry

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019