From 8d6a2795c40529a8c665de56cbc18fcc366183e5 Mon Sep 17 00:00:00 2001 From: whaffman Date: Fri, 28 Feb 2025 01:10:40 +0100 Subject: [PATCH] README --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index deeb689..249e0c5 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,14 @@ A lot of amazing shell stuff - libreadline-dev - libncurses-dev +## Edge Cases +- `cat $PWD/test` should expand, +- `cd -` : `bash: cd: OLDPWD not set` +- `cd ~` : does not expand ? + + + + ## TODO - [x] Find absolute path for command input ('/', './', 'cmd') - [x]Add heredoc to tokenizer @@ -27,15 +35,15 @@ A lot of amazing shell stuff ) - [x] Make the `executor`, run a command - [x] Make a parser to create a command list -- Add redirects, appends, pipe etc. File descriptor functions +- [x] Add redirects, appends, pipe etc. File descriptor functions a command can have multiple redirects but only the last is used for stdout Redirects take precedence over pipes, but pipes are still created and managed. should it close the unused pipe-end? all redirects are opened and closed, but only last fd is used. multiple HEREDOCs can be nested, only last is used. -- Expand \$ vars & support \$? - * $var [x] - * $? [0] +- [x] Expand \$ vars & support \$? + * [x] $var + * [0] $? - CB command to change banner - __Bonus:__ Command tree for &&, ||, *