fix: infinit loop 'echo '> >> < * ? [ ] | ; [ ] || && ( ) & # $ <<''
This commit is contained in:
parent
98341b62bc
commit
db60e7adba
@ -85,7 +85,7 @@ int get_redirections(char *str, cmd* command)
|
|||||||
{
|
{
|
||||||
redirection = strchr(redirection, redirection_symbol[i]);
|
redirection = strchr(redirection, redirection_symbol[i]);
|
||||||
while (redirection != NULL && is_in_quote(str, redirection - str))
|
while (redirection != NULL && is_in_quote(str, redirection - str))
|
||||||
redirection = strchr(redirection, '>');
|
redirection = strchr(redirection + 2, redirection_symbol[i]);
|
||||||
if (redirection == NULL)
|
if (redirection == NULL)
|
||||||
break;
|
break;
|
||||||
redirection_type = get_concecutive(redirection);
|
redirection_type = get_concecutive(redirection);
|
||||||
|
Loading…
Reference in New Issue
Block a user