Remove bashism and added required import
cover Remove bashism and added required import
Hi,
Remove bashism and added required import
/Anders
Anders Roxell (2):
realtime parser: remove unused and depricated imports
runltp: remove bashisms
runltp | 6 +++--- testcases/realtime/scripts/parser.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
Signature · 13 lines
1.8.1.2 ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
PATCH 1/2 realtime parser: remove unused and depricated imports
--- testcases/realtime/scripts/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/realtime/scripts/parser.py +1 -1
@@ -26,7 +26,7 @@ ## ## ################################################################################ -import sys,os,string,re +import sys class Log: def __init__(self,filename):
Signature · 13 lines
1.8.1.2 ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
PATCH 2/2 runltp: remove bashisms
In reply to Anders Roxell--- runltp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
runltp +3 -3
@@ -733,15 +733,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" + echo -n "LOG File: " echo $LOGFILE | cut -b4- if [ "$OUTPUTFILE" ]; then - echo -e "OUTPUT File: \c" + echo -n "OUTPUT File: " echo $OUTPUTFILE | cut -b4- fi - echo -e "FAILED COMMAND File: \c" + echo -n "FAILED COMMAND File: " echo $FAILCMDFILE | cut -b4- if [ "$HTMLFILE" ]; then
Signature · 13 lines
1.8.1.2 ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Re: [LTP] [PATCH 2/2] runltp: remove bashisms
Quoted 29 lines · Anders Roxell
Signed-off-by Anders Roxell <[email protected]>--- runltp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)runltp +3
-4@@ -733,15 +733,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" + echo -n "LOG File: " echo $LOGFILE | cut -b4- if [ "$OUTPUTFILE" ]; then - echo -e "OUTPUT File: \c" + echo -n "OUTPUT File: " echo $OUTPUTFILE | cut -b4- fi - echo -e "FAILED COMMAND File: \c" + echo -n "FAILED COMMAND File: " echo $FAILCMDFILE | cut -b4- if [ "$HTMLFILE" ]; then --
Quoted 2 lines
1.8.1.2
Yesterday, I looked through diverse GIT repos where I saw a commit saying that "echo" (dunno if it was "-e" or "-n") is not POSIX-compliant and "printf" should be used.
I am no POSIX guy, but maybe someone can confirm this?
- Sedat -
P.S.: Google gave me...
[1] http://pubs.opengroup.org/onlinepubs/009696799/utilities/echo.html
[2] https://bugs.kde.org/show_bug.cgi?id=160368
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Re: [LTP] [PATCH 2/2] runltp: remove bashisms
Hi,
Quoted 28 lines · Sedat Dilek
Quoted 27 lines · Anders Roxell
Signed-off-by Anders Roxell <[email protected]>--- runltp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)runltp +3
-3@@ -733,15 +733,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" + echo -n "LOG File: " echo $LOGFILE | cut -b4- if [ "$OUTPUTFILE" ]; then - echo -e "OUTPUT File: \c" + echo -n "OUTPUT File: " echo $OUTPUTFILE | cut -b4- fi - echo -e "FAILED COMMAND File: \c" + echo -n "FAILED COMMAND File: " echo $FAILCMDFILE | cut -b4-
Quoted 9 lines
Quoted 4 lines
runltp +0
-1if [ "$HTMLFILE" ]; then --1.8.1.2
Yesterday, I looked through diverse GIT repos where I saw a commit saying that "echo" (dunno if it was "-e" or "-n") is not POSIX-compliant and "printf" should be used.
I am no POSIX guy, but maybe someone can confirm this?
Thanks, I will rework and resend the patch.
/Anders
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Re: [LTP] [PATCH 2/2] runltp: remove bashisms
In reply to Sedat DilekQuoted 8 lines · On Thursday 29 August 2013 04:41:33 Sedat Dilek wrote:
runltp main() · line 736
Quoted 2 lines · Anders Roxell
runltp +1
-1- echo -e "LOG File: \c" + echo -n "LOG File: "Yesterday, I looked through diverse GIT repos where I saw a commit saying that "echo" (dunno if it was "-e" or "-n") is not POSIX-compliant and "printf" should be used.
I am no POSIX guy, but maybe someone can confirm this?
use printf please for both -e and -n issues
-mike
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Re: [LTP] [PATCH 2/2] runltp: remove bashisms
Hi,
Quoted 11 lines · Mike Frysinger
Quoted 8 lines · On Thursday 29 August 2013 04:41:33 Sedat Dilek wrote:
runltp main() · line 736
Quoted 2 lines · Anders Roxell
runltp +1
-1- echo -e "LOG File: \c" + echo -n "LOG File: "Yesterday, I looked through diverse GIT repos where I saw a commit saying that "echo" (dunno if it was "-e" or "-n") is not POSIX-compliant and "printf" should be used.
I am no POSIX guy, but maybe someone can confirm this?use
printfplease for both -e and -n issues
I did resend the patch yesterday, with subject: "[PATCHv2 0/2] Rework to printf and added required import"
/Anders
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list