diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2018-11-28 04:27:33 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2018-11-28 04:27:33 +0530 |
commit | 361c18064e26fa3028dda81258acb4ed5aa7c486 (patch) | |
tree | 6869d586d010887ef8dfd9bc88fa38430e2b3372 /src | |
parent | b7eb509ffb471c11e27e227a5836bcd379a7cab3 (diff) | |
download | nnn-361c18064e26fa3028dda81258acb4ed5aa7c486.tar.gz |
xargs: use -o, rm: change -I to -i
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3083,11 +3083,11 @@ nochange: } if (sel == SEL_CP) - snprintf(g_buf, MAX_CMD_LEN, "xargs -0 -a %s cp -iRp -t .", g_cppath); + snprintf(g_buf, MAX_CMD_LEN, "cat %s | xargs -0 -o cp -iRp -t .", g_cppath); else if (sel == SEL_MV) - snprintf(g_buf, MAX_CMD_LEN, "xargs -0 -a %s mv -i -t .", g_cppath); + snprintf(g_buf, MAX_CMD_LEN, "cat %s | xargs -0 -o mv -i -t .", g_cppath); else /* SEL_RMMUL */ - snprintf(g_buf, MAX_CMD_LEN, "xargs -0 -a %s rm -Ir", g_cppath); + snprintf(g_buf, MAX_CMD_LEN, "cat %s | xargs -0 -o rm -ir", g_cppath); spawn("sh", "-c", g_buf, path, F_NORMAL | F_SIGINT); |