From: "Денис Смирнов" <mithraen@freesource.info> To: community@lists.altlinux.org Subject: Re: [Comm] no-shebang scripts, was: После обновления пропали иконки на рабочем столе Date: Fri, 31 Aug 2012 13:07:26 +0400 Message-ID: <20120831090726.GA14869@t60p.mithraen.ru> (raw) In-Reply-To: <20120831071812.GF7701@conflux.foliandre> [-- Attachment #1: Type: text/plain, Size: 1125 bytes --] On Fri, Aug 31, 2012 at 11:18:12AM +0400, Dmitry Chistikov wrote: DC> При этом обращение к execve(2) в трех из шести функций стандартной DC> библиотеки содержит специальные инструкции: в случае такого (ENOEXEC) DC> облома попробовать запустить оболочку (/bin/sh) с соответствующим DC> параметром. Остальные три функции такой возможности не предоставляют. DC> Кстати говоря, у Кернигана и Пайка в UPE никаких шебангов и вовсе не было, DC> а сценарии содержали просто код на языке оболочки. О появлении шебангов DC> есть два фрагмента в английской википедии: см. разделы Etymology и History DC> на странице http://en.wikipedia.org/wiki/Shebang_(Unix) . Если верить DC> приведенным объяснениям (цитируется Д. Ритчи!), ранее всю работу по DC> идентификации командных сценариев выполняла оболочка, а введение шебангов DC> позволило перепоручить это ядру. То есть это одно из кривых наследий UNIX. От него хорошо бы избавиться. Вот интересно, а что сломается, если таки избавиться? -- С уважением, Денис http://mithraen.ru/ ---------------------------------------------------------------------------- [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2012-08-31 9:07 UTC|newest] Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-08-26 15:49 [Comm] " Chernetsky Andrey 2012-08-27 8:00 ` Андрей Черепанов 2012-08-27 9:27 ` Chernetsky Andrey 2012-08-28 9:25 ` Michael Shigorin 2012-08-28 10:14 ` Андрей Черепанов 2012-08-28 19:13 ` Chernetsky Andrey 2012-08-29 6:36 ` Dmitry Chistikov 2012-08-29 9:56 ` Андрей Черепанов 2012-08-29 10:06 ` Dmitry Chistikov 2012-08-29 10:37 ` Андрей Черепанов 2012-08-29 12:23 ` Dmitry Chistikov 2012-08-29 11:00 ` Sergey V Turchin 2012-08-29 12:24 ` Dmitry Chistikov 2012-08-29 12:42 ` Sergey V Turchin 2012-08-29 14:43 ` Dmitry Chistikov 2012-08-30 12:09 ` Sergey V Turchin 2012-08-30 15:17 ` Dmitry Chistikov 2012-08-30 15:47 ` Sergey V Turchin 2012-08-30 16:40 ` Dmitry Chistikov 2012-08-30 16:58 ` Денис Смирнов 2012-08-30 17:23 ` Dmitry Chistikov 2012-08-31 9:53 ` Sergey V Turchin 2012-09-01 8:44 ` [Comm] +x on non-executables, was: " Dmitry Chistikov 2012-09-24 15:00 ` Sergey V Turchin 2012-08-30 16:55 ` [Comm] " Денис Смирнов 2012-08-30 17:30 ` Dmitry Chistikov 2012-08-30 17:55 ` Dmitry Chistikov 2012-08-30 18:16 ` Alexey Tourbin 2012-08-30 18:37 ` [Comm] shell scripts, was: " Dmitry Chistikov 2012-08-31 13:23 ` Alexey Tourbin 2012-08-31 13:38 ` Alexey Borisenkov 2012-08-31 21:59 ` Dmitry Chistikov 2012-08-30 18:50 ` [Comm] " Денис Смирнов 2012-08-31 5:46 ` Dmitry Chistikov 2012-08-31 6:49 ` Денис Смирнов 2012-08-31 7:18 ` [Comm] no-shebang scripts, was: " Dmitry Chistikov 2012-08-31 9:07 ` Денис Смирнов [this message] 2012-08-31 9:55 ` [Comm] " Sergey V Turchin 2012-08-31 16:40 ` Денис Смирнов 2012-08-29 12:47 ` Sergey V Turchin 2012-08-27 18:00 ` Michael Shigorin 2012-08-27 20:31 ` Андрей Черепанов
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=20120831090726.GA14869@t60p.mithraen.ru \ --to=mithraen@freesource.info \ --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