Commit Graph

8 Commits

Author SHA1 Message Date
Ninad Sachania
b9e387ed6d LibShell/Builtin: Add a blank line before the timing report 2024-11-07 07:24:24 -05:00
Ninad Sachania
7d1d5450a4 LibShell/Builtin: Add spaces to make the output more consistent 2024-11-07 07:24:24 -05:00
Ali Mohammad Pur
808c98511b LibShell: Make null_if_unset_or_alternative actually return () if unset
Previously this acted more like "alternative if set or value", which is
completely wrong (based on the POSIX sh definition).
2024-10-09 12:39:08 +02:00
Ali Mohammad Pur
8371f26fae LibShell: Make 'bool' argsparser arguments not take a value 2024-10-09 12:39:08 +02:00
Ali Mohammad Pur
abc697b68b LibShell: Avoid UAFs in argsparser_parse
Core::ArgsParser does not copy the arguments anywhere, so all the
strings allocated have to stay alive until the end of the function.
2024-10-09 12:39:08 +02:00
Liav A.
6cd24efcbe Userland: Reduce further the amount of dependencies for LibShellMinimal
To be able to do this, we actually change multiple things:
- We create another subset library from LibCore called LibCoreBasic.
- We force LibLine and LibShellMinimal to use LibCoreMinimal and
  LibCoreBasic and only these, instead of the full version (LibCore).
2024-10-04 10:56:27 +02:00
Liav A.
20982a02d5 Userland: Declare a reduced version of LibShell
As a preparation for the next commit, we now have a reduced version of
LibShell which can be used with BuggieBox. That version will not include
LibSyntax, LibURL or LibCodeComprehension, which are all quite heavy for
BuggieBox to include in its own binary.
2024-10-04 10:56:27 +02:00
Liav A.
d46be35f3f Userland: Move Shell code to be in a library directory
This change ensures that users can use LibShell easily understand this
library now, because we have an actual library directory.

In addition to that, we move the test scripts to Tests/LibShell, to
match the usual pattern of putting test-related files in the Tests/
directory.
2024-10-04 10:56:27 +02:00