* [LTP] [PATCH] su/su01_s1: fix mismatched double quotation marks
@ 2013-05-29 6:06 DAN LI
2013-05-31 8:14 ` Wanlong Gao
0 siblings, 1 reply; 2+ messages in thread
From: DAN LI @ 2013-05-29 6:06 UTC (permalink / raw)
To: LTP list
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"
Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
---
testcases/commands/su/su01_s1 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testcases/commands/su/su01_s1 b/testcases/commands/su/su01_s1
index b50ebdf..fd2e485 100755
--- a/testcases/commands/su/su01_s1
+++ b/testcases/commands/su/su01_s1
@@ -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"
--
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [LTP] [PATCH] su/su01_s1: fix mismatched double quotation marks
2013-05-29 6:06 [LTP] [PATCH] su/su01_s1: fix mismatched double quotation marks DAN LI
@ 2013-05-31 8:14 ` Wanlong Gao
0 siblings, 0 replies; 2+ messages in thread
From: Wanlong Gao @ 2013-05-31 8:14 UTC (permalink / raw)
To: DAN LI; +Cc: LTP list
On 05/29/2013 02:06 PM, DAN LI wrote:
> 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"
>
>
> Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-31 8:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-29 6:06 [LTP] [PATCH] su/su01_s1: fix mismatched double quotation marks DAN LI
2013-05-31 8:14 ` Wanlong Gao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox