summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxultist <xultist@proton.me>2023-03-03 20:42:11 +1100
committerxultist <xultist@proton.me>2023-03-03 20:42:11 +1100
commit0ead0496c5e7727f78e43d99fd1d0a2c0a88fb1a (patch)
tree6f03363524827dafc8945a010440d75e94c93d10
parent6802fb6cf1eebfccb6eeda39c26f6a043b485489 (diff)
-rwxr-xr-xCommands.HC1
-rwxr-xr-xRun.HC8
2 files changed, 7 insertions, 2 deletions
diff --git a/Commands.HC b/Commands.HC
index 5a868f1..0a9ec84 100755
--- a/Commands.HC
+++ b/Commands.HC
@@ -38,6 +38,7 @@ U0 CMDCd(U8 **params, I64 cnt){
}
U0 Pwd(){
+
"%s\n", DirCur;
}
diff --git a/Run.HC b/Run.HC
index dfd8d04..89298af 100755
--- a/Run.HC
+++ b/Run.HC
@@ -41,7 +41,12 @@ U0 Kadosh(){
input = GetStr("");
count++;
- if (!StrCmp(input, "quit")) break;
+ if (!StrCmp(input, "quit")) {
+ Free(str_arr);
+ Free(input);
+ break;
+
+ }
else{
str_arr=StrSplit(input,&word_cnt);
if (word_cnt != 0){
@@ -55,7 +60,6 @@ U0 Kadosh(){
else{
"$FG,4$ERR:$FG,0$ command '%s' not recognized.\n$FD$", str_arr[0];
}
- //Free(params);
}