aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-11-27 21:25:21 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-11-27 21:25:21 +0530
commit70d371c214ba3c0913b40064745e73510e33be57 (patch)
tree51a83e8d54a4590fe459078a85b12c93ea22fb74
parentab61bb03d07c43940d6f407a96114ab7f519763c (diff)
downloadnnn-70d371c214ba3c0913b40064745e73510e33be57.tar.gz
Fix #143
-rw-r--r--src/nnn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 81a454c..d48ce6e 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3085,11 +3085,11 @@ nochange:
}
if (sel == SEL_CP)
- snprintf(g_buf, MAX_CMD_LEN, "xargs -0 -a %s cp -ir --preserve=all -t .", g_cppath);
+ snprintf(g_buf, MAX_CMD_LEN, "cat %s | xargs -0 cp -ir --preserve=all -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 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 rm -Ir", g_cppath);
spawn("sh", "-c", g_buf, path, F_NORMAL | F_SIGINT);