Bash-4.3 patch 10

This commit is contained in:
Chet Ramey 2014-04-11 11:05:05 -04:00
commit 2b76266c88
4 changed files with 47 additions and 2 deletions

View file

@ -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;
}