Commit Graph

42 Commits

Author SHA1 Message Date
1f9d59b546 fixed ss3 escape code parsing, added a cursor mode reset that triggers on child exit 2026-03-15 11:11:35 -04:00
9bd9c66b92 implemented '<>' redirects, and the 'seek' builtin
'seek' is a wrapper around the lseek() syscall

added noclobber to core shopts and implemented '>|' redirection syntax

properly implemented fd close syntax

fixed saved fds being leaked into exec'd programs
2026-03-14 20:04:20 -04:00
307386ffc6 tightened up some logic with indenting and joining lines
added more linebuf tests

extracted all verb match arms into private methods on LineBuf
2026-03-13 19:24:30 -04:00
b137c38e92 completely rewrote test suite for top level src files and all builtin files 2026-03-06 23:42:14 -05:00
42b4120055 Add ulimit builtin and optimize shed -c to exec single commands directly without forking 2026-03-06 11:07:46 -05:00
7be79a3803 rustfmt'd the codebase 2026-03-04 19:52:29 -05:00
fbadbebf8c Implemented the autocmd builtin, which allows you to register hooks for certain shell events. 2026-03-04 14:12:10 -05:00
c642a96da7 Added 'read_key' builtin that allows widget scripts to handle input 2026-03-03 20:39:09 -05:00
9d13565176 Added ex mode to line editor, a 'keymap' builtin, and a zsh-like widget system using ':!<shellcmd>' ex mode commands 2026-03-03 03:19:02 -05:00
5a62f72947 implemented 'getopts' builtin 2026-03-01 21:16:33 -05:00
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
c61360865f added 'map', 'pop', 'push', 'fpop', 'fpush', and 'rotate' builtins 2026-02-27 20:37:58 -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
2f0cb931d6 implemented builtins: readonly, unset, true, false, and : (no-op) 2026-02-24 17:57:09 -05:00
f8e02d31cd - fixed 'I' command in normal mode not moving to exact start of line
- Added disown builtin
- Fixed job table not hanging up child processes on exit
- Added target architecture and os to --version output
- Added local builtin for creating variables scoped to functions
2026-02-23 16:10:49 -05:00
129390c2da Implemented the exec builtin
Fixed readline and terminal interactions using stdin instead of /dev/tty
2026-02-20 12:17:48 -05:00
2184b9b361 implemented the pushd, popd, and dirs builtins 2026-02-20 01:29:40 -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
8ad53f09b3 Added rustfmt.toml, formatted codebase 2025-08-12 13:58:25 -04:00
25e85edab0 Added regex to [[ ]] tests 2025-05-13 00:48:19 -04:00
3155db5565 implemented the 'builtin' and 'command' builtins 2025-05-08 21:21:23 -04:00
4d16ffa60f implemented for loops 2025-04-20 05:16:50 -04:00
1854578d49 Improved error reporting and fully implemented the shopt command 2025-03-26 23:41:19 -04:00
70d114254d Implemented a new builtin and improved error handling 2025-03-24 17:53:32 -04:00
26fc4669f0 Implemented command substitution 2025-03-19 16:46:45 -04:00
255a4586b4 added another test for the parser 2025-03-19 15:16:43 -04:00
19dee4bcd6 Re-implemented aliases 2025-03-18 21:50:53 -04:00
0d286ba006 Implemented prompt expansion, and display for errors 2025-03-18 15:54:06 -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
c0fb3f5914 Re-implemented more job control logic 2025-03-16 00:16:33 -04:00
505b968c60 Various additions and improvements 2025-03-15 21:04:45 -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
11576e9e08 Various improvements 2025-03-07 03:36:25 -05:00
1b3e2c0887 Early implementation of scripting elements 2025-03-05 01:36:58 -05:00
5dd9ee96ad Implemented functions and aliases 2025-03-02 22:49:36 -05:00
a9a9642a2a Initial commit for fern 2025-03-02 16:32:15 -05:00