ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Vitaly Lipatov <lav@altlinux.ru>
To: devel@lists.altlinux.org
Subject: [devel] Передача аргумента с пробелом внутри
Date: Mon, 23 Jun 2008 02:11:45 +0400
Message-ID: <200806230211.48341.lav@altlinux.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 683 bytes --]

Пытаюсь передать --define='_source_payload w9.gzdio' в rpmbuild
и по дороге аргумент разрывается на две части по пробелу.
Пример скрипта приложен (запустить в каталоге с любым спеком 
test.spec).
У меня такой вывод:
$ ./test_arg.sh
test.spec --define='_source_payload w9.gzdio' --nodeps
ошибка: Недопустимое имя (%define) макроса %
ошибка: Недопустимое имя (%define) макроса %
Платформы для сборки: i586
Сборка для платформы i586
Записан: /home/lav/RPM/SRPMS/test-1.1.2-alt0.M40.1.src.rpm

Возможно ли вообще коррктно передавать такие параметры между 
функциями в shell?

-- 
С уважением,
Виталий Липатов
Санкт-Петербург
GNU! ALT Linux Team! WINE! LaTeX! LyX! http://freesource.info

[-- Attachment #2: test_arg.sh --]
[-- Type: application/x-shellscript, Size: 200 bytes --]

             reply	other threads:[~2008-06-22 22:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-22 22:11 Vitaly Lipatov [this message]
2008-06-22 22:17 ` Dmitry V. Levin
2008-06-22 22:44   ` Vitaly Lipatov
2008-06-22 22:56     ` Dmitry V. Levin
2010-07-01 22:31       ` Dmitry V. Levin

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=200806230211.48341.lav@altlinux.ru \
    --to=lav@altlinux.ru \
    --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