diff options
-rw-r--r-- | name.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -86,11 +86,11 @@ usage: fprintf(stderr, "usage: %s [-x]\n", name); * If the -x flag is given, they are executed too. */ for(i = 0; i < j; i++){ - escape(froms[i], &tmp); printf("mv '%s'", tmp); + escape(froms[i], &tmp); printf("mv -- '%s'", tmp); escape(tos[i], &tmp); printf(" '%s'\n", tmp); if(xflag){ if(!fork()){ - execl("/bin/mv", "mv", froms[i], tos[i], NULL); + execl("/bin/mv", "mv", "--", froms[i], tos[i], NULL); err(1, "execl"); } if(wait(&s), s){ |