From: Epiphanov Sergei <serpiph@nikiet.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] зачем ему мой /etc/passwd и $MAIL ?
Date: Wed, 21 May 2008 13:14:35 +0400
Message-ID: <200805211314.36038.serpiph@nikiet.ru> (raw)
In-Reply-To: <1211357539.12412.9@ildar.innovations.kz>
В сообщении от Wednesday 21 May 2008 12:12:19 Ildar Mulyukov написал(а):
> passwd - это тревожный звоночек. Он заставляет меня искать и
> разбираться. А вот мой $MAIL - это уже серьёзнее. Что он ожидает там
> увидеть?
В autoconf.info есть такие строки:
ENV'
`MAIL'
`MAILPATH'
`PS1'
`PS2'
`PS4'
These variables should not matter for shell scripts, since they are
supposed to affect only interactive shells. However, at least one
shell (the pre-3.0 UWIN `ksh') gets confused about whether it is
interactive, which means that (for example) a `PS1' with a side
effect can unexpectedly modify `$?'. To work around this bug,
Autoconf-generated scripts do something like this:
(unset ENV) >/dev/null 2>&1 && unset ENV MAIL MAILPATH
PS1='$ '
PS2='> '
PS4='+ '
В ChangeLog (autoconf_2.5-2.59) эти вещи датированы аж 2002-09-01.
В двух словах: проверка командного интерпретатора на вшивость.
Насчёт passwd. Предполагаю, что скрипты беруг поле GECOS из этого файла (если
верить autoconf.info). Поиск: AC_CHECK_MEMBER или 'struct passwd.gecos' в
autoconf.info.
--
С уважением, Епифанов Сергей
next prev parent reply other threads:[~2008-05-21 9:14 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-20 9:48 Ildar Mulyukov
2008-05-20 16:53 ` Michael Shigorin
2008-05-20 22:00 ` Dmitry V. Levin
2008-05-21 4:18 ` Ildar Mulyukov
2008-05-21 6:15 ` Michael A. Kangin
2008-05-21 8:31 ` Alexey Gladkov
2008-05-21 2:45 ` Ildar Mulyukov
2008-05-21 5:16 ` Eugene Prokopiev
2008-05-21 8:12 ` Ildar Mulyukov
2008-05-21 9:14 ` Epiphanov Sergei [this message]
2008-05-22 7:59 ` Ildar Mulyukov
2008-05-22 8:07 ` Epiphanov Sergei
2008-05-20 17:09 ` Slava Semushin
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=200805211314.36038.serpiph@nikiet.ru \
--to=serpiph@nikiet.ru \
--cc=devel@lists.altlinux.org \
/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