aboutsummaryrefslogtreecommitdiff
path: root/name.c
diff options
context:
space:
mode:
Diffstat (limited to 'name.c')
-rw-r--r--name.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/name.c b/name.c
index e74cd31..bf12277 100644
--- a/name.c
+++ b/name.c
@@ -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){