* core/cmd: Adjust math commands * shell: make `?x` commands a parsing failure We have moved the `?x` commands to `%x`, thus now no command should start with `?`. This patch makes the parser fail to parse `?x` strings. * core/tui: use APIs in panels * There's no `%q` anymore, use `%=`
74 lines
1.4 KiB
Text
74 lines
1.4 KiB
Text
==============================
|
|
Echo with (double) quoted args
|
|
==============================
|
|
|
|
echo "This;is.one@string"
|
|
|
|
---
|
|
|
|
(statements
|
|
(arged_stmt command: (cmd_identifier)
|
|
args: (args (arg (double_quoted_arg)))))
|
|
|
|
==============================
|
|
Echo with (single) quoted args
|
|
==============================
|
|
|
|
echo 'This;is.one@string'
|
|
|
|
---
|
|
|
|
(statements
|
|
(arged_stmt command: (cmd_identifier)
|
|
args: (args (arg (single_quoted_arg)))))
|
|
|
|
|
|
===========================
|
|
Legacy command - all quoted
|
|
===========================
|
|
|
|
"echo This;is.one@string"
|
|
|
|
---
|
|
|
|
(statements
|
|
(legacy_quoted_stmt))
|
|
|
|
|
|
=======================================
|
|
Double quoted arg with cmd substitution
|
|
=======================================
|
|
|
|
echo "This is $(echo "a command")"
|
|
|
|
---
|
|
|
|
(statements
|
|
(arged_stmt command: (cmd_identifier)
|
|
args: (args
|
|
(arg (double_quoted_arg
|
|
(cmd_substitution_arg
|
|
(arged_stmt command: (cmd_identifier)
|
|
args: (args
|
|
(arg (double_quoted_arg))))))))))
|
|
|
|
==================
|
|
Quoted hash
|
|
==================
|
|
|
|
echo "#"
|
|
echo " #$(pdf)"
|
|
echo '#'
|
|
|
|
---
|
|
|
|
(statements
|
|
(arged_stmt command: (cmd_identifier)
|
|
args: (args (arg (double_quoted_arg))))
|
|
(arged_stmt command: (cmd_identifier)
|
|
args: (args
|
|
(arg (double_quoted_arg
|
|
(cmd_substitution_arg
|
|
(arged_stmt command: (cmd_identifier)))))))
|
|
(arged_stmt command: (cmd_identifier)
|
|
args: (args (arg (single_quoted_arg)))))
|