diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-08-23 22:08:29 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-08-23 22:08:29 +0530 |
commit | 611eaa51c85a7c50c082a686b1f0e4b639002d18 (patch) | |
tree | e7426cf47accdcb02f985384d4cdb574b3449e2f /src | |
parent | 3a0f2a20d823572bd3737aeecf33ab5913d5be2b (diff) | |
download | nnn-611eaa51c85a7c50c082a686b1f0e4b639002d18.tar.gz |
Use canonical replstr
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 } |