Update osh.c

This commit is contained in:
Fabio Scotto di Santolo
2024-09-15 21:06:10 +02:00
committed by GitHub
parent afed23d648
commit 93b92cf5c6

View File

@@ -52,9 +52,9 @@ int main(void) {
} else if ((c = strchr(raw, '!')) != NULL) {
const int n = digits(c);
if (nth_command(raw, n) != -1) {
fprintf(stderr, "%s\n", raw);
printf("%s\n", raw);
} else {
printf("Command not found in position %d\n", n);
fprintf(stderr, "Command not found in position %d\n", n);
continue;
}
}