Commit Graph

26 Commits

Author SHA1 Message Date
2ea44c55e9 implemented 'type' and 'wait' builtins
fixed some tcsetpgrp() misbehavior

fixed not being able to redirect stderr from builtins
2026-03-01 17:14:48 -05:00
1b63eff783 Add array support for local/export/readonly builtins
Add array length syntax ${arr[#]}

Map read path now expands variables before splitting on ., fixing map "$node" with dotted paths

Map assignment path uses quote-aware token splitting, enabling quoted keys like "--type="

Completion errors now display above prompt instead of being overwritten

Fix nested if/fi parser bug when closing keywords appear on separate lines

Add QuoteState enum, replacing ad-hoc quote tracking booleans across lexer, highlighter, and expansion

Add split_tk_at/split_tk for quote-aware token splitting with span preservation

Refactor setup_builtin to accept optional argv for deferred expansion

Add ariadne dependency (not yet wired up)
2026-02-28 15:54:53 -05:00
c508180228 Added -j flag to 'complete' for completing job names/pids 2026-02-27 11:03:56 -05:00
5f3610c298 Early implementation of bash-like completions with 'complete' and 'compgen' builtins 2026-02-27 01:10:52 -05:00
28ce008234 Various line editor fixes and optimizations 2026-02-25 15:43:08 -05:00
cd40760ea0 Refactored internals for builtins inside of pipelines 2026-02-24 10:54:24 -05:00
cf46303659 Ran the codebase through rustfmt 2026-02-23 23:32:46 -05:00
a18a0b622f command arguments are now underlined if they match an existing path -m ran rustfmt on the entire codebase 2026-02-19 21:32:03 -05:00
982d11f21b implemented the trap builtin 2026-02-19 16:39:18 -05:00
87d465034a properly implemented read builtin
fixed bugs related to redirections and compound commands

improved io routing logic
2026-02-17 17:30:21 -05:00
a4f48abd49 Added prompt escape code expansion flag to echo, -p
Added non-formatted runtime to prompt escape codes

Added prompt escape code that expands to the output of a shell function

Reworked internal logic for termios control
2026-01-29 03:46:35 -05:00
8ad53f09b3 Added rustfmt.toml, formatted codebase 2025-08-12 13:58:25 -04:00
70d114254d Implemented a new builtin and improved error handling 2025-03-24 17:53:32 -04:00
937bbbacdd Cleaned up warnings 2025-03-23 17:41:12 -04:00
8fffe1cd71 Implemented an abstraction for extracting flags from builtins 2025-03-22 20:10:47 -04:00
da51be27a7 Implemented logic for loops and if statements 2025-03-16 14:28:49 -04:00
92d7766765 Early work on scripting features 2025-03-16 02:56:29 -04:00
505b968c60 Various additions and improvements 2025-03-15 21:04:45 -04:00
7f21e5baa7 Adapted old code to fit new codebase 2025-03-15 17:54:08 -04:00
2acf70ef96 Implemented assignments, working on job control 2025-03-15 16:57:34 -04:00
97b4b1835d Progress 2025-03-15 00:02:05 -04:00
e81c4903b9 Implemented brace expansion 2025-03-10 01:50:12 -04:00
90a188d4b2 Implemented heredocs and herestrings 2025-03-09 00:34:49 -05:00
cdcfb23edb Implemented scoping for expansions 2025-03-08 01:38:42 -05:00
d35ff7bc6f Implemented case statements 2025-03-06 15:32:28 -05:00
a9a9642a2a Initial commit for fern 2025-03-02 16:32:15 -05:00