From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_00,FUZZY_XPILL autolearn=no version=3.2.4 From: Vitaly Lipatov Organization: ALT Linux Team To: devel@lists.altlinux.org Date: Mon, 23 Jun 2008 02:11:45 +0400 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_k4sXIxZ+F4VcThj" Message-Id: <200806230211.48341.lav@altlinux.ru> Subject: [devel] =?koi8-r?b?8MXSxcTB3sEgwdLH1c3FztTBINMg0NLPwsXMz80g187V?= =?koi8-r?b?1NLJ?= X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.10b3 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jun 2008 22:12:03 -0000 Archived-At: List-Archive: List-Post: --Boundary-00=_k4sXIxZ+F4VcThj Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit Content-Disposition: inline Пытаюсь передать --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 --Boundary-00=_k4sXIxZ+F4VcThj Content-Type: application/x-shellscript; name="test_arg.sh" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="test_arg.sh" func_build() { SPEC=$1 shift rpmbuild $SPEC -bs "${@}" --target i586 } fastbuild() { echo $@ func_build "${@}" } ARGS="--define='_source_payload w9.gzdio' --nodeps" fastbuild test.spec "$ARGS" --Boundary-00=_k4sXIxZ+F4VcThj--