From: Arun Prakash Jana Date: Fri, 23 Aug 2019 16:38:29 +0000 (+0530) Subject: Use canonical replstr X-Git-Tag: v2.7~116 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=611eaa51c85a7c50c082a686b1f0e4b639002d18;p=nnn.git Use canonical replstr --- diff --git a/src/nnn.c b/src/nnn.c index 2ef23f2d..4773bfe0 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -1151,9 +1151,9 @@ static void cpstr(char *buf) { snprintf(buf, CMD_LEN_MAX, #ifdef __linux__ - "xargs -0 -a %s -%c src %s src .", g_cppath, REPLACE_STR, cp); + "xargs -0 -a %s -%c {} %s {} .", g_cppath, REPLACE_STR, cp); #else - "cat %s | xargs -0 -o -%c src cp -iRp src .", g_cppath, REPLACE_STR); + "cat %s | xargs -0 -o -%c {} cp -iRp {} .", g_cppath, REPLACE_STR); #endif } @@ -1161,9 +1161,9 @@ static void mvstr(char *buf) { snprintf(buf, CMD_LEN_MAX, #ifdef __linux__ - "xargs -0 -a %s -%c src %s src .", g_cppath, REPLACE_STR, mv); + "xargs -0 -a %s -%c {} %s {} .", g_cppath, REPLACE_STR, mv); #else - "cat %s | xargs -0 -o -%c src mv -i src .", g_cppath, REPLACE_STR); + "cat %s | xargs -0 -o -%c {} mv -i {} .", g_cppath, REPLACE_STR); #endif }