diff options
-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); } |