serenity/Userland/Shell
Ali Mohammad Pur 045c85af4b 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|
```
2021-10-11 10:56:01 +03:30
..
Tests
AST.cpp Shell: Raise an error if an execute node ends up trying to run nothing 2021-10-11 10:56:01 +03:30
AST.h Shell: Use default instead of an empty constructor/destructor 2021-09-16 17:17:13 +02:00
Builtin.cpp Shell: Fix -Wunreachable-code warnings from clang 2021-10-08 23:33:46 +02:00
CMakeLists.txt
Execution.h
Formatter.cpp
Formatter.h
Forward.h
ImmediateFunctions.cpp AK: Rename create<T> => make_ref_counted<T> 2021-09-03 02:36:09 +02:00
Job.cpp
Job.h
main.cpp
NodeVisitor.cpp
NodeVisitor.h
Parser.cpp Shell: Fix -Wunreachable-code warnings from clang 2021-10-08 23:33:46 +02:00
Parser.h Everywhere: Prevent risky implicit casts of (Nonnull)RefPtr 2021-09-03 23:20:23 +02:00
Shell.cpp Everywhere: Make ByteBuffer::{create_*,copy}() OOM-safe 2021-09-06 01:53:26 +02:00
Shell.h Everywhere: Make ByteBuffer::{create_*,copy}() OOM-safe 2021-09-06 01:53:26 +02:00
SyntaxHighlighter.cpp
SyntaxHighlighter.h