From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH OSSTEST v4 4/7] standalone: Correctly quote $@ where it is used. Date: Thu, 8 Oct 2015 16:55:18 +0100 Message-ID: <1444319721-16208-4-git-send-email-ian.campbell@citrix.com> References: <1444319704.1410.251.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1444319704.1410.251.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com, xen-devel@lists.xen.org Cc: Ian Campbell List-Id: xen-devel@lists.xenproject.org Else arguments with spaces become multiple arguments. Signed-off-by: Ian Campbell --- standalone | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/standalone b/standalone index 7c7fde9..25e23ca 100755 --- a/standalone +++ b/standalone @@ -197,7 +197,7 @@ with_logging() { local log=$1; shift ensure_logs savelog -c 300 "$log" >/dev/null - $@ 2>&1 | tee "$log" + "$@" 2>&1 | tee "$log" rc=${PIPESTATUS[0]} if [ $rc -ne 0 ] ; then echo "FAILED rc=${rc}" >&2 @@ -240,7 +240,7 @@ case $op in OSSTEST_FLIGHT=$flight \ OSSTEST_CONFIG=$config \ OSSTEST_NO_BASELINE=$nobaseline \ - with_logging logs/$flight/make-flight.log ./cr-daily-branch $@ $branch + with_logging logs/$flight/make-flight.log ./cr-daily-branch "$@" $branch ;; set-paths) @@ -321,7 +321,7 @@ case $op in OSSTEST_FLIGHT=$flight \ OSSTEST_HOST_REUSE=$reuse \ OSSTEST_JOB=$job \ - with_logging logs/$flight/$job.$ts.log ./$ts $hosts $@ + with_logging logs/$flight/$job.$ts.log ./$ts $hosts "$@" ;; get-job-status) -- 2.5.3