From: Marc Fiuczynski Date: Tue, 12 Feb 2008 16:24:10 +0000 (+0000) Subject: No need to backslash the char '@' X-Git-Tag: tests-4.2-4~251 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a8e62cea07cb5a532902a1a5fb466cfd3cd10bc6;p=tests.git No need to backslash the char '@' --- diff --git a/system/TestPlc.py b/system/TestPlc.py index 97e9215..73bfae9 100644 --- a/system/TestPlc.py +++ b/system/TestPlc.py @@ -16,11 +16,11 @@ from TestKey import TestKey from TestSlice import TestSlice # inserts a backslash before each occurence of the following chars -# \ " ' < > & | ; ( ) $ * ~ @ +# \ " ' < > & | ; ( ) $ * ~ def backslash_shell_specials (command): result='' for char in command: - if char in "\\\"'<>&|;()$*~@": + if char in "\\\"'<>&|;()$*~": result +='\\'+char else: result +=char