From 353e7d599efa423e2d8410809937cbd57608be68 Mon Sep 17 00:00:00 2001 From: Pin Date: Sat, 15 Feb 2025 09:39:55 -0500 Subject: [PATCH] updating nomorenumbers to override math test --- README.md | 5 +++++ msh.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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);