ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@fandra.org>
To: devel@linux.iplabs.ru
Subject: Re: [devel] initscripts
Date: Mon, 11 Dec 2000 20:31:55 +0300
Message-ID: <20001211203155.A5966@LDV.fandra.org> (raw)
In-Reply-To: <20001211193153.B5394@LDV.fandra.org>; from ldv@fandra.org on Mon, Dec 11, 2000 at 07:31:53PM +0300

[-- Attachment #1: Type: text/plain, Size: 1265 bytes --]

On Mon, Dec 11, 2000 at 07:31:53PM +0300, Dmitry V. Levin wrote:
> Еще один вариант: я могу встроить в bash автоматическую переменную (с той
> же семантикой, что и RANDOM), которая всегда будет возвращать текущую
> ширину. Это самое дешевое решение, но вот вопрос: как назвать переменную?

Тем более, что эти переменные уже есть, и bash про них уже знает!
Их зовут... LINES и COLUMNS :)

Надо только включить по-умолчанию опцию checkwinsize, немного изменив ее
функциональность; сейчас в документации написано:
If set, bash checks the window size after each command and, if necessary,
updates the values of LINES and COLUMNS.

А надо так:
If set, bash checks the window size after each command and every time
variables LINES and COLUMNS are used, updating values of these variables
if necessary.

Нет возражений?


Regards,
	Dmitry

+-------------------------------------------------------------------------+
Dmitry V. Levin     mailto://ldv@fandra.org
Software Engineer   PGP pubkey http://www.fandra.org/users/ldv/pgpkeys.html
IPLabs Linux Team   http://linux.iplabs.ru
Fandra Project      http://www.fandra.org
+-------------------------------------------------------------------------+
UNIX is user friendly. It's just very selective about who its friends are.

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

  reply	other threads:[~2000-12-11 17:31 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-09 18:13 [devel] пересборка пакетов Peter Novodvorsky
2000-12-09 23:21 ` [devel] " aen
2000-12-09 19:52   ` [devel] " Peter Novodvorsky
2000-12-09 20:49     ` [devel] " Alexander Bokovoy
2000-12-09 20:50       ` [devel] " Peter Novodvorsky
2000-12-09 21:22         ` Alexander Bokovoy
2000-12-09 21:50           ` [devel] " Peter Novodvorsky
2000-12-10  3:44             ` aen
2000-12-09 22:22         ` Mikhail Zabaluev
2000-12-09 22:58           ` [devel] " Peter Novodvorsky
2000-12-09 23:16     ` [devel] " Dmitry V. Levin
2000-12-10  3:49       ` aen
2000-12-10 11:36         ` [devel] " Alexander Bokovoy
2000-12-10 15:38           ` [devel] " Dmitry V. Levin
2000-12-10 20:03             ` [devel] Re: [devel] " Alexander Bokovoy
2000-12-10 23:26               ` [devel] initscripts Dmitry V. Levin
2000-12-10 23:36                 ` Alexander Bokovoy
2000-12-11  0:26                   ` Dmitry V. Levin
2000-12-11  7:47                     ` Alexander Bokovoy
2000-12-11 16:31                       ` Dmitry V. Levin
2000-12-11 17:31                         ` Dmitry V. Levin [this message]
2000-12-11 19:33                           ` Alexander Bokovoy
2000-12-11 19:32                         ` Alexander Bokovoy

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=20001211203155.A5966@LDV.fandra.org \
    --to=ldv@fandra.org \
    --cc=devel@linux.iplabs.ru \
    /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

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git