mv: uh, probably should be recursive on both of those

This commit is contained in:
K. Lange 2018-11-21 17:50:45 +09:00
parent d9302a33d0
commit cc5f822d59

View File

@ -35,7 +35,7 @@ int main(int argc, char * argv[]) {
return 1;
}
/* TODO stat magic for other ways to reference the same file */
if (call((char *[]){"/bin/cp",argv[1],argv[2],NULL})) return 1;
if (call((char *[]){"/bin/rm",argv[1],NULL})) return 1;
if (call((char *[]){"/bin/cp","-r",argv[1],argv[2],NULL})) return 1;
if (call((char *[]){"/bin/rm","-r",argv[1],NULL})) return 1;
return 0;
}