diff options
author | xultist <xultist@proton.me> | 2023-03-03 20:42:11 +1100 |
---|---|---|
committer | xultist <xultist@proton.me> | 2023-03-03 20:42:11 +1100 |
commit | 0ead0496c5e7727f78e43d99fd1d0a2c0a88fb1a (patch) | |
tree | 6f03363524827dafc8945a010440d75e94c93d10 | |
parent | 6802fb6cf1eebfccb6eeda39c26f6a043b485489 (diff) |
-rwxr-xr-x | Commands.HC | 1 | ||||
-rwxr-xr-x | Run.HC | 8 |
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; } @@ -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); } |