ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Paul Wolneykien <manowar@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Q: shebang.reg: /usr/bin/env
Date: Fri, 07 Aug 2009 19:11:34 +0400
Message-ID: <1249657894.15789.31.camel@dinkum-thinkum.spb.altlinux.org> (raw)
In-Reply-To: <20090807145533.GE3837@altlinux.org>

В Птн, 07/08/2009 в 18:55 +0400, Alexey Tourbin пишет:
> On Fri, Aug 07, 2009 at 05:23:49PM +0400, Paul Wolneykien wrote:
> > *,/usr/bin/env)
> > 	CheckArgs "$*"
> >         Fatal "$f: too many arguments: $line"
> >         ;;
> > 
> > Т.е., как я понимаю, Fatal будет всегда, если указан env, независимо от
> > арнументов. Если это намёк на то, что env не нужно использовать, то
> > почему об этом не написано явно, в сообщении об ошибке?
> 
> А Вы попробуйте запустить скрипт!
> 
> $ cat chlen
> #!/usr/bin/env php -q
> <?php print "chlen\n" ?>
> $ ./chlen
> /usr/bin/env: php -q: No such file or directory
> $ 

  Ага, пасиба. Просто я не могу разглядеть, что 'Fatal "$f: too many
arguments: $line"' является условной конструкцией. Но это, наверное, моё
незнание Shell не позволяет мне этого сделать... :)

  P.S. /usr/bin/env php... заменил на /usr/bin/php... Так, наверное,
будет лучше?




      reply	other threads:[~2009-08-07 15:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-07 13:23 Paul Wolneykien
2009-08-07 13:38 ` Egor Vyscrebentsov
2009-08-07 14:55 ` Alexey Tourbin
2009-08-07 15:11   ` Paul Wolneykien [this message]

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=1249657894.15789.31.camel@dinkum-thinkum.spb.altlinux.org \
    --to=manowar@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