From patchwork Thu Aug 29 13:55:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 19615 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f72.google.com (mail-vb0-f72.google.com [209.85.212.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 33C8125E4D for ; Thu, 29 Aug 2013 13:56:07 +0000 (UTC) Received: by mail-vb0-f72.google.com with SMTP id f12sf460211vbg.7 for ; Thu, 29 Aug 2013 06:56:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=zNxeX+gyaT1CJMjTOrRBhR1G9sHthEj6HJ2cFzq/zHU=; b=CvS0jgMx7lzhYKXqXT8l3gNJK0670o7knhUglC9GDPRRjJATdszVmxTdoKIJBkOqEv DOXFTx0mcZAioPtfNZ80evrvDAqO5BbAfBnAFqhEqYd+lB4HlspWogK/0jjOZekQpM9a TavaQdZDG261797ri2qqvD8nMRDvWu4SwKEP8GMGXye0oBcsLlhmdLMimSNuWR0jY30/ OoHpaGOUNL17xK8SQTDYaoIE5cFkWXeAU+cDj/XtbRsKFvu7rZ0zVTRjWZayn1xdO+Kg CGEstS7poYXCMMAoN1fpw13XFuc/hwPHYoU07lz9aUv8pysRYct9F/0S3JpagpYlBHsJ HUsQ== X-Received: by 10.236.17.161 with SMTP id j21mr748461yhj.55.1377784566699; Thu, 29 Aug 2013 06:56:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.94.71 with SMTP id da7ls791431qeb.49.gmail; Thu, 29 Aug 2013 06:56:06 -0700 (PDT) X-Received: by 10.52.186.65 with SMTP id fi1mr168694vdc.41.1377784566567; Thu, 29 Aug 2013 06:56:06 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id dn2si8092724vcb.134.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 29 Aug 2013 06:56:06 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id gf12so321820vcb.8 for ; Thu, 29 Aug 2013 06:56:06 -0700 (PDT) X-Gm-Message-State: ALoCoQn75LPSjyN447fkDXg+ia8Purehkkq5S2kY1+PenoDqGMqBkT5mkiM/57wQ58IoaD7ahPdb X-Received: by 10.52.178.198 with SMTP id da6mr1734756vdc.26.1377784566456; Thu, 29 Aug 2013 06:56:06 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp24132vcz; Thu, 29 Aug 2013 06:56:05 -0700 (PDT) X-Received: by 10.112.168.170 with SMTP id zx10mr3431819lbb.0.1377784565148; Thu, 29 Aug 2013 06:56:05 -0700 (PDT) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179]) by mx.google.com with ESMTPS id uf8si1903890lbc.0.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 29 Aug 2013 06:56:05 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.217.179 is neither permitted nor denied by best guess record for domain of anders.roxell@linaro.org) client-ip=209.85.217.179; Received: by mail-lb0-f179.google.com with SMTP id x18so738116lbi.10 for ; Thu, 29 Aug 2013 06:56:04 -0700 (PDT) X-Received: by 10.152.6.202 with SMTP id d10mr304631laa.49.1377784564423; Thu, 29 Aug 2013 06:56:04 -0700 (PDT) Received: from localhost ([79.102.193.252]) by mx.google.com with ESMTPSA id zc3sm5410857lbb.2.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 29 Aug 2013 06:56:03 -0700 (PDT) From: Anders Roxell To: ltp-list@lists.sourceforge.net Cc: patches@linaro.org, Anders Roxell Subject: [PATCH 2/2] runltp: rework echo -n to printf POSIX-compliant Date: Thu, 29 Aug 2013 15:55:48 +0200 Message-Id: <1377784548-1036-3-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1377784548-1036-1-git-send-email-anders.roxell@linaro.org> References: <1377784548-1036-1-git-send-email-anders.roxell@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: anders.roxell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Anders Roxell --- runltp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/runltp b/runltp index a419bf8..eb8e0c0 100755 --- a/runltp +++ b/runltp @@ -537,18 +537,13 @@ main() { [ -z "$RHOST" ] && \ { - echo \ - "INFO: Enter RHOST = 'name of the remote host machine'" - echo -n "-> " + printf "INFO: Enter RHOST = 'name of the remote host machine'\n-> " read RHOST } [ -z "$PASSWD" ] && \ { - echo " " - echo \ - "INFO: Enter PASSWD = 'root passwd of the remote host machine'" - echo -n "-> " + printf "\nINFO: Enter PASSWD = 'root passwd of the remote host machine'\n-> " read PASSWD } export RHOST=$RHOST @@ -733,15 +728,15 @@ main() #$PAN_COMMAND #Duplicated code here, because otherwise if we fail, only "PAN_COMMAND" gets output ## Display the Output/Log/Failed/HTML file names here - echo -e "LOG File: \c" + printf "LOG File: " echo $LOGFILE | cut -b4- if [ "$OUTPUTFILE" ]; then - echo -e "OUTPUT File: \c" + printf "OUTPUT File: " echo $OUTPUTFILE | cut -b4- fi - echo -e "FAILED COMMAND File: \c" + printf "FAILED COMMAND File: " echo $FAILCMDFILE | cut -b4- if [ "$HTMLFILE" ]; then