From patchwork Tue Sep 3 07:42:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 19699 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f197.google.com (mail-ve0-f197.google.com [209.85.128.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 51D9824869 for ; Tue, 3 Sep 2013 07:43:00 +0000 (UTC) Received: by mail-ve0-f197.google.com with SMTP id ox1sf6249458veb.0 for ; Tue, 03 Sep 2013 00:43:00 -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=RCd9MCeCrtZ5W5JjTTkSbSH/HjnSWyoX5P0eyIkLLvo=; b=kTZKrDOpFK4evMUqT3XMRWeB9Nz+q1CbNNx5snRRI7QvqKUkr7ma3W0su2mN0xH3rw 989REKHBU4izx7jWY/rFSVyWcanQHdk53L1GyzTX/yRPTXLm8foadMIWSIXcCnANWJW/ gBM2zOrpwYQ/om0ReQEFmOSuMfKWld67LN0ez4ksGh9o/88GfXm1xHGwhfQWVDHMhrvZ haYbssDUw7rNdMokzW8IcAfH6xBRP5bTB5+sIXfIKZ2qMUO+Du+isTMhQM1i+Dmf0RG3 n/Y9ImLmdM354TjG838oNLF/x/OGiy6X65NelUCdP1K3xvQ6DHRSuT/PqcsePyJSYZAn 4YZg== X-Received: by 10.236.24.195 with SMTP id x43mr9859587yhx.3.1378194179807; Tue, 03 Sep 2013 00:42:59 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.104.198 with SMTP id gg6ls2597952qeb.89.gmail; Tue, 03 Sep 2013 00:42:59 -0700 (PDT) X-Received: by 10.221.56.194 with SMTP id wd2mr27625319vcb.7.1378194179732; Tue, 03 Sep 2013 00:42:59 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id o10si4114341vco.140.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Sep 2013 00:42:59 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.179 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.179; Received: by mail-vc0-f179.google.com with SMTP id ht10so3717911vcb.10 for ; Tue, 03 Sep 2013 00:42:59 -0700 (PDT) X-Gm-Message-State: ALoCoQnZB3pM9WoJu9kDtxJCi64L8OO1pL0yerem7t71p24uNM6FRjvIQJ2mkdYIIGp0kFjD0dai X-Received: by 10.52.162.66 with SMTP id xy2mr13552241vdb.3.1378194179600; Tue, 03 Sep 2013 00:42:59 -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 u4csp155656vcz; Tue, 3 Sep 2013 00:42:58 -0700 (PDT) X-Received: by 10.152.19.97 with SMTP id d1mr786354lae.34.1378194177910; Tue, 03 Sep 2013 00:42:57 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com [209.85.215.52]) by mx.google.com with ESMTPS id y5si7188500lbb.147.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Sep 2013 00:42:57 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.215.52 is neither permitted nor denied by best guess record for domain of anders.roxell@linaro.org) client-ip=209.85.215.52; Received: by mail-la0-f52.google.com with SMTP id ev20so4245943lab.39 for ; Tue, 03 Sep 2013 00:42:56 -0700 (PDT) X-Received: by 10.112.219.133 with SMTP id po5mr99810lbc.51.1378194176801; Tue, 03 Sep 2013 00:42:56 -0700 (PDT) Received: from localhost ([192.36.1.230]) by mx.google.com with ESMTPSA id js17sm8247437lab.5.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 03 Sep 2013 00:42:55 -0700 (PDT) From: Anders Roxell To: ltp-list@lists.sourceforge.net Cc: patches@linaro.org, Anders Roxell Subject: [PATCHv3] runltp: rework echo -n to printf POSIX-compliant Date: Tue, 3 Sep 2013 09:42:35 +0200 Message-Id: <1378194155-16370-1-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.179 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 | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/runltp b/runltp index a419bf8..e86f5c7 100755 --- a/runltp +++ b/runltp @@ -537,18 +537,16 @@ 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'" + printf "\n-> " read RHOST } [ -z "$PASSWD" ] && \ { - echo " " - echo \ - "INFO: Enter PASSWD = 'root passwd of the remote host machine'" - echo -n "-> " + printf "\nINFO: " + printf "Enter PASSWD = 'root passwd of the remote host machine'" + printf "\n-> " read PASSWD } export RHOST=$RHOST @@ -733,15 +731,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