updating nomorenumbers to override math test

This commit is contained in:
Pin
2025-02-15 09:39:55 -05:00
parent d19edeabcd
commit 353e7d599e
2 changed files with 10 additions and 1 deletions

View File

@@ -8,3 +8,8 @@ make
make install
```
## Static Build on Rocky 8
```
dnf --enablerepo=devel install -y glibc-static readline-static
```

4
msh.c
View File

@@ -363,7 +363,11 @@ void startShell() {
while ((line = readline(getPrompt())) != NULL) {
if (strlen(line) != 0) { // Checking if prompt returns empty
if (strcmp(line, "nomorenumbers")) {
status = mathTest();
} else {
status = 0;
}
if (status == 0) { // Passed math test
add_history(line);
execCommand(line);