summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}