From: "Dmitry V. Levin" <ldv@altlinux.org> To: ALT Devel discussion list <devel@lists.altlinux.org> Subject: Re: [devel] hsh-run Date: Fri, 16 Nov 2007 02:18:27 +0300 Message-ID: <20071115231827.GB23545@basalt.office.altlinux.org> (raw) In-Reply-To: <20071115225626.GC24091@solemn.turbinal> [-- Attachment #1: Type: text/plain, Size: 1065 bytes --] On Fri, Nov 16, 2007 at 01:56:26AM +0300, Alexey Tourbin wrote: > On Fri, Nov 16, 2007 at 01:42:42AM +0300, Dmitry V. Levin wrote: > > > Господа. Если команда в качестве аргумента берёт другую команду, > > > то спецификация getopt ДОЛЖНА начинаться со знака "+". [...] > > P.S. А как быть с hsh-run? > > Думаю что тоже с плюса должна начинаться. По крайней мере минусов не > видно, кто хочет писать "--" будет по-прежнему писать "--". То есть > я склонен думать, что есть особый тип команд, который в качестве > аргумента берёт другую команду (с её собственными аргументами). > Это просто такой специальный тип семантики аргументов у команды; > эта семантика должна быть документирована, и спецификация getopt > у такой команды должна начинаться с плюса. С hsh-run не всё так просто как с fakeroot или setarch, поскольку hsh-run традиционно допускает необязательный аргумент (не опцию) path-to-workdir. Если изменить спецификацию getopt для hsh-run, то перестанет работать hsh-run path-to-workdir [options] <program> [args] -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-11-15 23:18 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-11-15 22:34 [devel] setarch-2.13-alt2 borken Alexey Tourbin 2007-11-15 22:42 ` Dmitry V. Levin 2007-11-15 22:56 ` Alexey Tourbin 2007-11-15 23:18 ` Dmitry V. Levin [this message] 2007-11-16 9:07 ` Slava Dubrovskiy 2007-11-16 9:09 ` Slava Semushin 2007-11-16 9:17 ` Alexey Gladkov
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=20071115231827.GB23545@basalt.office.altlinux.org \ --to=ldv@altlinux.org \ --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