From 5450b0c6022c8ea96b0fe0a4f4542cf4c6e0a297 Mon Sep 17 00:00:00 2001 From: call-cc Date: Mon, 1 Jun 2020 16:22:23 -0400 Subject: [PATCH] add multiple-argument deletion to rmdir --- src/rmdir.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rmdir.c b/src/rmdir.c index 6c9aaab..a9b9f85 100644 --- a/src/rmdir.c +++ b/src/rmdir.c @@ -2,5 +2,8 @@ int main(int argc, char *argv[]) { - rmdir(*argv); + while(*argv) { + rmdir(*argv); + *argv++; + } }