From: Alexander Bokovoy <ab@altlinux.org>
To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] амарок умер...
Date: Thu, 06 Jul 2006 19:36:54 +0400
Message-ID: <44AD2E16.7030006@altlinux.org> (raw)
In-Reply-To: <200607061827.47490.led@ukr-fin.com.ua>
Led пишет:
>> Я говорю о переносимости.
>
> Переносимость обеспечивается при сборке пакета приблизительно так:
> subst 's|#!/usr/bin/env ruby|%_bindir/ruby|' script А как на счёт
> переносимости "/usr/bin/env"?
>
Не передергивайте. /usr/bin/env -- самый старый и известный способ
указания путей к трансляторам в *BSD-системах. Вот комментарий на эту
тему Дэвида Уиллера в рассылке git:
--------------------------------------------------------------------
Using env this way an old trick; I don't know who originally came up
with it.
Technically, even this isn't 100% portable. Leading "#!" (shebang)
isn't implemented by a very few old systems (it's not in the Single User
Spec,
though it was introduced between v7 and v8 of Unix). Also,
you can find one or two really obscure systems where env isn't in /usr/bin
(OpenServer 5 and a few really old Linux distributions).
But env is ONLY in /usr/bin for the *BSDs.
This version runs on 99.999% of the Linux/Unix systems, and takes
essentially zero effort to implement; "more portable" solutions are so much
more work that few people bother if they're writing shell scripts.
--- David A. Wheeler
--
/ Alexander Bokovoy
Samba Team http://www.samba.org/
ALT Linux Team http://www.altlinux.org/
Midgard Project Ry http://www.midgard-project.org/
next prev parent reply other threads:[~2006-07-06 15:36 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-06 6:17 Ivan Adzhubey
2006-07-06 6:51 ` Ivan Adzhubey
2006-07-06 8:00 ` Stanislav Yadykin
2006-07-06 15:50 ` Ivan Adzhubey
2006-07-06 11:59 ` Yuri Horoshkov
2006-07-06 12:03 ` Serge Polkovnikov
2006-07-06 12:05 ` Valery V. Inozemtsev
2006-07-06 13:02 ` Mikhail Yakshin
2006-07-06 13:07 ` Valery V. Inozemtsev
2006-07-06 13:09 ` Mikhail Yakshin
2006-07-06 14:00 ` Alexey I. Froloff
2006-07-06 14:26 ` Kirill A. Shutemov
2006-07-06 14:30 ` Led
2006-07-06 14:40 ` Kirill A. Shutemov
2006-07-06 14:51 ` [sisyphus] /usr/bin/env smth. (Was: Re: амарок умер...) Andrei Bulava
2006-07-06 15:16 ` [sisyphus] /usr/bin/env smth. (Was: Re: амарок умер... ) Led
2006-07-06 15:13 ` [sisyphus] амарок умер Led
2006-07-06 15:23 ` Kirill A. Shutemov
2006-07-06 15:27 ` Led
2006-07-06 15:36 ` Alexander Bokovoy [this message]
2006-07-06 15:42 ` Led
2006-07-06 15:27 ` Alexander Bokovoy
2006-07-06 15:34 ` Led
2006-07-06 15:54 ` Kirill A. Shutemov
2006-07-06 16:05 ` Led
2006-07-06 16:09 ` Kirill A. Shutemov
2006-07-06 17:01 ` Igor Zubkov
2006-07-11 13:08 ` Michael Shigorin
2006-07-11 13:23 ` Led
2006-07-06 14:28 ` Mikhail Yakshin
2006-07-06 14: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=44AD2E16.7030006@altlinux.org \
--to=ab@altlinux.org \
--cc=sisyphus@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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git