Skip to contentSkip to conversation

su/su01_s1: fix mismatched double quotation marks

PATCH Applied DAN LI 2 participants 2 messages May 29, 2013 – May 31, 2013

lore
Share & tools
lore

DAN LI

author
#0 lore raw

PATCH 1/1 su/su01_s1: fix mismatched double quotation marks

Expect code
* spawn su -c "/bin/su root -c \"echo \"\\\$TEST_LINE > $TEST_ENV_FILE\"\"" will be translated to
* spawn su -c /bin/su root -c "echo "\$TEST_LINE > /tmp/TEST_ENV_FILE_ROOT"" which actually should be
* spawn su -c /bin/su root -c "echo \$TEST_LINE > /tmp/TEST_ENV_FILE_ROOT"

---
 testcases/commands/su/su01_s1 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/commands/su/su01_s1 +1 -1
index b50ebdf..fd2e485 100755
@@ -145,7 +145,7 @@ set exit_code [lindex $codes 3]
 set i_have_env 0
 set test_env_var " "
 if { $i_am_root==1 } {
-	spawn su -c "/bin/su root -c \"echo \"\\\$TEST_LINE > $TEST_ENV_FILE\"\""
+	spawn su -c "/bin/su root -c \"echo \\\$TEST_LINE > $TEST_ENV_FILE\""
 	expect {
 		 "Password:" {
 			send "$PASSWD\r"
Signature · 12 lines
1.8.1

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Applied
#1 lore raw
Quoted 9 lines · DAN LI

Expect code
* spawn su -c "/bin/su root -c \"echo \"\\\$TEST_LINE > $TEST_ENV_FILE\"\"" will be translated to
* spawn su -c /bin/su root -c "echo "\$TEST_LINE > /tmp/TEST_ENV_FILE_ROOT"" which actually should be
* spawn su -c /bin/su root -c "echo \$TEST_LINE > /tmp/TEST_ENV_FILE_ROOT"

Applied, thank you.

Wanlong Gao

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list