ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Artem Zolochevskiy <az@zolochevskie.net>
To: community@lists.altlinux.org
Subject: Re: [Comm] sh - bash
Date: Sun, 15 Oct 2006 08:41:41 +0300
Message-ID: <egshqd$g89$1@sea.gmane.org> (raw)
In-Reply-To: <45316462.8070806@altlinux.org>

Alexey Rusakov wrote:

> Насколько я понимаю, ситуация такая: вначале был Bourne shell, он же sh.
> sh есть на всех UNIX-системах, кроме тех, на которых используется Korn
> shell (ksh, соответственно). На Linux оригинальный sh если и есть, то
> встречается редко; вместо него используется Bourne Again shell (bash),
> который умеет в точности воспроизводить поведение предка. В современных
> системах sh - это тот же bash, но работающий в режиме совместимости с sh.
> Отличия работы bash в режиме совместимости лучше всего почитать в man
> bash, основное отличие - в режиме совместимости bash строго следует
> POSIX (м-да, о том, что это значит, тоже лучше читать в man bash). Ну в
> общем, я думаю, вы поняли, какое сокращение я избегаю здесь употребить :)

Да всё это понятно, доку читали...
Я по наивности предполагал, что #!/bin/sh используют для переносимости. Но
тогда непонятно отчего в скриптах в системе повсеместно #!/bin/sh если сам
этот альтовский sh скорее bash чем оригинальный старый sh, а соответственно
это явно _не_ для переносимости.

-- 
Artem Zolochevskiy
Kaliningrad, Russia
JID: az@jabber.org



  reply	other threads:[~2006-10-15  5:41 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-14 21:57 Artem Zolochevskiy
2006-10-14 22:27 ` Alexey Rusakov
2006-10-15  5:41   ` Artem Zolochevskiy [this message]
2006-10-15  6:13     ` Alexey Rusakov
2006-10-15  8:41     ` Andrey Rahmatullin
2006-10-15  8:56       ` Artem Zolochevskiy
2006-10-15  9:03         ` Andrey Rahmatullin
2006-10-14 22:50 ` Pavel Usischev
2006-10-15  5:53   ` Artem Zolochevskiy
2006-10-15  5:57     ` Artem Zolochevskiy
2006-10-15  7:26     ` Sergey Vlasov
2006-10-15  7:43       ` Artem Zolochevskiy
2006-10-15 11:31         ` Dmitry V. Levin
2006-10-18 12:01           ` Fr. Br. George
2006-10-15 17:55         ` [Comm] heirloom toolchest Michael Shigorin
2006-10-15 10:55       ` [Comm] sh - bash Maksim Otstavnov
2006-10-15 17:52     ` Michael Shigorin
2006-10-15 17:48   ` Michael Shigorin

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='egshqd$g89$1@sea.gmane.org' \
    --to=az@zolochevskie.net \
    --cc=community@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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