From: Ben Gras Date: Mon, 8 Aug 2005 13:37:41 +0000 (+0000) Subject: Don't print paths twice with cpdir -v. (ast@) X-Git-Tag: v3.1.0~403 X-Git-Url: http://zhaoyanbai.com/repos/jquery-3.1.1.min.js?a=commitdiff_plain;h=bbaa3f6bc3dbd6f229695a2c15e260c223134cb1;p=minix.git Don't print paths twice with cpdir -v. (ast@) --- diff --git a/commands/simple/cp.c b/commands/simple/cp.c index 0b1b9b0c0..d45412108 100755 --- a/commands/simple/cp.c +++ b/commands/simple/cp.c @@ -538,7 +538,7 @@ int copy(const char *src, const char *dst, struct stat *srcst, } } if (vflag) { - printf(action == COPY ? "cp %s %s\n" : "mv %s %s\n", src, dst); + printf(action == COPY ? "cp %s ..\n" : "mv %s ..\n", src); } return 1; }