zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: 3.0.6-pre-4: COLUMNS/LINES environment handling
Date: Wed, 16 Jun 1999 14:47:31 +0200	[thread overview]
Message-ID: <9906161247.AA25648@ibmth.df.unipi.it> (raw)
In-Reply-To: ""Bart Schaefer""'s message of "Mon, 14 Jun 1999 09:43:01 DFT." <990614094301.ZM19130@candle.brasslantern.com>

"Bart Schaefer" wrote:

> Now, somebody who has a copy of the actual POSIX shell spec should tell
> us if the above is reasonable.  Zoltan, are you out there?

I had a look at the single UNIX spec (see http://www.opengroup.org/) and it
doesn't say anything about this, at least in the Shell chapter (2).

> How much of all that needs to go in the manual?  Lots of it should go in
> the FAQ, including remarks about how it is broken in various versions if
> we can figure that out.

As it now behaves logically, the manual entry can be shortish, but it might
be nice to say a bit more about LINES and COLUMNS, e.g. that they're set
automatically if possible but may be wrong.

As for the FAQ entry, maybe inspiration will strike, but these things are
unpredictable, n'est-ce pas?

> Finally, I noticed that `winchanged' was declared only if TIOCGWINSZ but
> used without such a condition.  Apparently zsh doesn't get built on any
> systems that don't have TIOCGWINSZ?

Presumably it hasn't been (because it can't be), but this must be wrong.


This is a non-sequitur, but while I was looking at the UNIX spec I noticed
that LINENO, unlike LINES, is specified, and it says that functions as well
as scripts should have it set.  You'll find out that with autoloaded
functions you always get 0 from `print $LINENO' (the question of why is not
entirely trivial).  I've known about this for ages, but the ways I thought
about fixing it at the time were rather gross.  But maybe someone's little
grey cells...

-- 
Peter Stephenson <pws@ibmth.df.unipi.it>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy


  parent reply	other threads:[~1999-06-16 13:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-14  9:43 Bart Schaefer
1999-06-14 17:23 ` Tatsuo Furukawa
1999-06-15  8:10 ` Peter Stephenson
1999-06-15 11:45 ` Andrej Borsenkow
1999-06-16 12:47 ` Peter Stephenson [this message]
1999-06-17 11:39 ` Andrej Borsenkow
1999-06-17 15:22   ` Bart Schaefer
1999-06-17 17:01     ` Geoff Wing

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9906161247.AA25648@ibmth.df.unipi.it \
    --to=pws@ibmth.df.unipi.it \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).