summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorczjstmax <jstmaxlol@disroot.org>2026-03-18 22:55:34 +0100
committerczjstmax <jstmaxlol@disroot.org>2026-03-18 22:55:34 +0100
commitbe207bdacae1388801d157f05118b63605c4974e (patch)
treedd611c0805ee87e273f4875f6e4541b6e40fcf64
parent9efa7363a1a867cbb436e91fdb91fcd8fa5336a8 (diff)
sport
Signed-off-by: czjstmax <jstmaxlol@disroot.org>
-rw-r--r--nosh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nosh.c b/nosh.c
index ebcd57d..b4ed1aa 100644
--- a/nosh.c
+++ b/nosh.c
@@ -47,9 +47,9 @@ int main(void)
for (size_t i = 1; i < p.we_wordc; i++)
printf("%s ", p.we_wordv[i]);
if (p.we_wordc >= 2) {
- if (strcmp(p.we_wordv[1], "-c") == 0)
- continue;
- printf("\n");
+ if (strcmp(p.we_wordv[1], "-c") != 0)
+ printf("\n");
+ else continue;
}
}
else if (strcmp(p.we_wordv[0], "cd") == 0) {