diff --git a/README.md b/README.md index b70cffd..b68dd50 100644 --- a/README.md +++ b/README.md @@ -8,3 +8,8 @@ make make install ``` +## Static Build on Rocky 8 + +``` +dnf --enablerepo=devel install -y glibc-static readline-static +``` diff --git a/msh.c b/msh.c index b62880a..398c7e6 100644 --- a/msh.c +++ b/msh.c @@ -363,7 +363,11 @@ void startShell() { while ((line = readline(getPrompt())) != NULL) { if (strlen(line) != 0) { // Checking if prompt returns empty - status = mathTest(); + if (strcmp(line, "nomorenumbers")) { + status = mathTest(); + } else { + status = 0; + } if (status == 0) { // Passed math test add_history(line); execCommand(line);