Add -R as a synonym to -r for rm(1)

Some scripts require this.
This commit is contained in:
sin
2013-12-12 13:15:07 +00:00
parent 544857623b
commit 7f6d5653c6
2 changed files with 6 additions and 2 deletions

3
rm.c
View File

@@ -10,7 +10,7 @@
static void
usage(void)
{
eprintf("usage: %s [-fr] FILE...\n", argv0);
eprintf("usage: %s [-fRr] FILE...\n", argv0);
}
int
@@ -20,6 +20,7 @@ main(int argc, char *argv[])
case 'f':
rm_fflag = true;
break;
case 'R':
case 'r':
rm_rflag = true;
break;