summaryrefslogtreecommitdiff
path: root/nosh.c
diff options
context:
space:
mode:
Diffstat (limited to 'nosh.c')
-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) {