updating nomorenumbers to override math test
This commit is contained in:
@@ -8,3 +8,8 @@ make
|
|||||||
make install
|
make install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Static Build on Rocky 8
|
||||||
|
|
||||||
|
```
|
||||||
|
dnf --enablerepo=devel install -y glibc-static readline-static
|
||||||
|
```
|
||||||
|
|||||||
6
msh.c
6
msh.c
@@ -363,7 +363,11 @@ void startShell() {
|
|||||||
|
|
||||||
while ((line = readline(getPrompt())) != NULL) {
|
while ((line = readline(getPrompt())) != NULL) {
|
||||||
if (strlen(line) != 0) { // Checking if prompt returns empty
|
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
|
if (status == 0) { // Passed math test
|
||||||
add_history(line);
|
add_history(line);
|
||||||
execCommand(line);
|
execCommand(line);
|
||||||
|
|||||||
Reference in New Issue
Block a user