Bash-4.3 patch 10
This commit is contained in:
parent
6ebbb24a5c
commit
2b76266c88
4 changed files with 47 additions and 2 deletions
|
|
@ -311,3 +311,17 @@ sh_contains_shell_metas (string)
|
|||
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
sh_contains_quotes (string)
|
||||
char *string;
|
||||
{
|
||||
char *s;
|
||||
|
||||
for (s = string; s && *s; s++)
|
||||
{
|
||||
if (*s == '\'' || *s == '"' || *s == '\\')
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue