Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
JAliEn
JAliEn-ROOT
Commits
21296456
Commit
21296456
authored
Jul 04, 2019
by
Volodymyr Yurchenko
Browse files
Fail the command if it has odd number of quotes
parent
429e33cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/TJAlien.cxx
View file @
21296456
...
...
@@ -203,6 +203,10 @@ TGridResult *TJAlien::Command(const char *command, bool interactive, UInt_t stre
else
{
opt
=
Strip
(
token
->
GetString
().
Data
(),
'\"'
);
append
=
true
;
if
(
i
==
tokens
->
GetEntries
()
-
1
)
{
Error
(
"Command"
,
"Invalid command. Check if you miss a matching quote"
);
return
nullptr
;
}
continue
;
}
}
...
...
@@ -211,6 +215,10 @@ TGridResult *TJAlien::Command(const char *command, bool interactive, UInt_t stre
if
(
append
)
{
opt
.
Append
(
" "
);
opt
.
Append
(
token
->
GetString
().
Data
());
if
(
i
==
tokens
->
GetEntries
()
-
1
)
{
Error
(
"Command"
,
"Invalid command. Check if you miss a matching quote"
);
return
nullptr
;
}
continue
;
}
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment