postprocessing: do quote removal

This commit is contained in:
Khaïs COLIN 2025-03-20 17:34:07 +01:00
parent 22b0b4746f
commit f07a80c762
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
5 changed files with 141 additions and 3 deletions

19
test.sh
View file

@ -291,6 +291,25 @@ expecting <<EOF
╰─ (no redirections)
EOF
when_run <<EOF "quotes are removed"
echo "this contains quotes"
EOF
expecting <<EOF
╰─ t_cmdgroup
├─ t_cmdlist
│ ├─ num_cmds = 1
│ ╰─ cmd[0]
│ ├─ t_cmdlist_item
│ │ ╰─ t_pipeline
│ │ ├─ num_cmd = 1
│ │ ╰─ cmd[0]
│ │ ╰─ t_simple_cmd
│ │ ├─ words = [echo][this contains quotes]
│ │ ╰─ (no redirections)
│ ╰─ t_operator = END
╰─ (no redirections)
EOF
when_run <<EOF "quoted parentheses are not operators"
echo unclosed '('
EOF