summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-24 19:56:52 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-24 19:56:52 +0200
commit882c4aa52a3be7c13ba3e18556c657e20d6f2812 (patch)
tree640adc23d1d542f084f4756fabfe58189e595fde
parentpwd fix (diff)
download42-minishell-882c4aa52a3be7c13ba3e18556c657e20d6f2812.tar.gz
42-minishell-882c4aa52a3be7c13ba3e18556c657e20d6f2812.tar.bz2
42-minishell-882c4aa52a3be7c13ba3e18556c657e20d6f2812.tar.xz
42-minishell-882c4aa52a3be7c13ba3e18556c657e20d6f2812.tar.zst
42-minishell-882c4aa52a3be7c13ba3e18556c657e20d6f2812.zip
TODO update
-rw-r--r--TODO.org3
-rw-r--r--src/d_define.h3
-rw-r--r--src/d_enum.h1
3 files changed, 4 insertions, 3 deletions
diff --git a/TODO.org b/TODO.org
index 26c859c..9f9a235 100644
--- a/TODO.org
+++ b/TODO.org
@@ -4,9 +4,10 @@
** DONE cd qweqwe <=== stderr
** DONE [#A] lpipes leaks <=== this is a big one (split lpipes | lcom | com)
** DONE [#A] /true/path/to/non-existant/bin/fail-plus-bad-fork
-** TODO [#A] fix pwd when cd /
+** DONE [#A] fix pwd when cd /
** DONE [#A] Multiline pipes (ls |)
** DONE [#B] forked write(2) stuff on cd
+** TODO [#B] Multiline && ||
** TODO [#B] ./qwe.sh <=== handle bad shebang
** DONE [#C] fix that goddamn exit(2) 25 leak
** TODO [#C] lpipes leaks on builtins (same as above man)
diff --git a/src/d_define.h b/src/d_define.h
index e682071..9042037 100644
--- a/src/d_define.h
+++ b/src/d_define.h
@@ -19,8 +19,7 @@
** ====== CLASSICS ======
*/
-#define FT_BUILTINS "echo|cd|pwd|export|unset|env|exit|type"
-
+#define FT_BUILTINS "echo|cd|pwd|export|unset|env|exit|type|["
/*
** ====== PSX ======
diff --git a/src/d_enum.h b/src/d_enum.h
index 921195f..c046118 100644
--- a/src/d_enum.h
+++ b/src/d_enum.h
@@ -42,6 +42,7 @@ enum
FT_ID_ENV,
FT_ID_EXIT,
FT_ID_TYPE,
+ FT_ID_SQB,
FT_BUILTINS_COUNT
};