summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-10-11 10:19:04 +0330
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-10-11 10:56:01 +0330
commit045c85af4b68e7444d52be4e61d660637a456557 (patch)
tree9c05f684257b9f9ad336d1e69fac60dfa04584a2 /Userland/Libraries/LibJS
parent39087533475cd82dfe9228d144a8c57d1912b771 (diff)
downloadserenity-045c85af4b68e7444d52be4e61d660637a456557.zip
Shell: Raise an error if an execute node ends up trying to run nothing
...while capturing its standard output. As `$()` is an invalid construct, execute nodes are not supposed to capture the output of no command being run; but it is possible to create empty commands such as CastToCommand(Redirection(...)) or similar. Make this a hard error instead of an unescapable select(). This was noticed in #10432, which should now error out like so: ``` Error: Cannot capture standard output when no command is being executed 0| $(<$file) ~~~~~^^^^^^^^^ 1| ```
Diffstat (limited to 'Userland/Libraries/LibJS')
0 files changed, 0 insertions, 0 deletions