From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Led To: ALT Linux Sisyphus discussion list Date: Thu, 6 Jul 2006 18:42:56 +0300 User-Agent: KMail/1.9.1 References: <200607060217.31412.iadzhubey@rics.bwh.harvard.edu> <200607061827.47490.led@ukr-fin.com.ua> <44AD2E16.7030006@altlinux.org> In-Reply-To: <44AD2E16.7030006@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200607061842.57465.led@ukr-fin.com.ua> Subject: Re: [sisyphus] =?koi8-r?b?wc3B0s/LINXNxdIuLi4=?= X-BeenThere: sisyphus@lists.altlinux.org X-Mailman-Version: 2.1.7 Precedence: list Reply-To: ALT Linux Sisyphus discussion list List-Id: ALT Linux Sisyphus discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jul 2006 15:42:55 -0000 Archived-At: List-Archive: List-Post: В сообщении от 6 июля 2006 18:36 Alexander Bokovoy написал(a): > 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. Тогда да, согласен. тут не поспоришь, если человек перепробовал как минимум 10000 разных "Linux/Unix systems":) -- Led.