AnotherTest
a303b69caa
Shell: Do not parse history events in scripts
...
That makes no sense!
2021-03-07 10:59:51 +01:00
AnotherTest
e1512d5968
Shell: Skip caching PATH and history load/save when not interactive
...
Non-interactive shells (i.e. when running scripts) do not need this
functionality, so they are a boatload of wasted time.
This significantly reduces the script startup and shutdown times when
there are lots of executables in PATH or lots of entries in the history.
2021-03-07 10:58:42 +01:00
AnotherTest
50473003be
Shell: Add a not
builtin
...
`not` just takes a command, runs it, then negates its exit code (0->1,
non-zero->0).
2021-01-19 08:19:43 +01:00
AnotherTest
fc7a06af9d
Shell: Consider numbers as word characters too
...
Otherwise `foobar2` wouldn't be a valid identifier
2021-01-19 08:19:43 +01:00
AnotherTest
cd6e5c064b
Shell: Add a builtin that parses its sole argument and dumps its AST
...
Pretty useful for debugging.
2021-01-19 08:19:43 +01:00
AnotherTest
239472ba69
Shell: Add (basic) support for history event designators
...
Closes #4888
2021-01-15 19:13:03 +01:00
Andreas Kling
c4e2fd8123
Shell: Move to Userland/Shell/
2021-01-12 12:04:07 +01:00