serenity/Userland
AnotherTest 3b8fa5a753 Shell: Add support for indexing into variables
Now a variable may have an optional slice (only _one_ slice), which can
also use negative indices to index from the end.
This works on both lists and strings.
The contents of the slice have the same semantics as brace expansions.
For example:
```sh
$ x=(1 2 3 4 5 6)
$ echo $x[1..3] # select indices 1, 2, 3
2 3 4
$ echo $x[3,4,1,0] # select indices 3, 4, 1, 0 (in that order)
4 5 2 1
$ x="Well Hello Friends!"
$ echo $x[5..9]
Hello
```
2021-03-22 13:15:08 +01:00
..
Applications Spreadsheet: Add an export wizard, and support for custom CSV exports 2021-03-22 07:43:58 +01:00
Demos LibGfx: Rename 32-bit BitmapFormats to BGRA8888 and BGRx888x 2021-03-16 11:50:03 +01:00
DevTools UserspaceEmulator: Add support for SC_abort syscall 2021-03-22 07:43:44 +01:00
DynamicLoader LibC: Add x86_64 Registers 2021-03-21 09:35:23 +01:00
Games LibGfx: Rename 32-bit BitmapFormats to BGRA8888 and BGRx888x 2021-03-16 11:50:03 +01:00
Libraries NotificationServer: Close connection on notification close 2021-03-22 12:46:16 +01:00
MenuApplets MenuApplets: Remove unused .gitignore files 2021-03-21 15:11:48 +01:00
Services Notification: Remove default image 2021-03-22 12:46:16 +01:00
Shell Shell: Add support for indexing into variables 2021-03-22 13:15:08 +01:00
Tests Tests: Create stress-writeread 2021-03-17 23:22:42 +01:00
Utilities profile: Add -a option as an alias for "-p -1" (all processes) 2021-03-21 16:02:11 +01:00
CMakeLists.txt Build: Build Userland with -O2, Kernel with -Os 2021-02-24 11:38:52 +01:00