parent
cdbc8863cd
commit
46cf157ad8
|
@ -169,3 +169,15 @@ wc -l $tmpfile
|
||||||
(command_name (word))
|
(command_name (word))
|
||||||
(word)
|
(word)
|
||||||
(simple_expansion (variable_name))))
|
(simple_expansion (variable_name))))
|
||||||
|
|
||||||
|
======================================
|
||||||
|
Heredocs with escaped expansions
|
||||||
|
======================================
|
||||||
|
|
||||||
|
cat << EOF
|
||||||
|
DEV_NAME=\$(lsblk)
|
||||||
|
EOF
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
(program (redirected_statement (command (command_name (word))) (heredoc_redirect (heredoc_start))) (heredoc_body))
|
||||||
|
|
|
@ -61,6 +61,13 @@ struct Scanner {
|
||||||
return did_advance;
|
return did_advance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case '\\': {
|
||||||
|
did_advance = true;
|
||||||
|
advance(lexer);
|
||||||
|
advance(lexer);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case '$': {
|
case '$': {
|
||||||
lexer->result_symbol = middle_type;
|
lexer->result_symbol = middle_type;
|
||||||
return did_advance;
|
return did_advance;
|
||||||
|
|
Loading…
Reference in New Issue