]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix #143
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 27 Nov 2018 15:55:21 +0000 (21:25 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 27 Nov 2018 15:55:21 +0000 (21:25 +0530)
src/nnn.c

index 81a454cccdfaa1734043836361fe901395df3a94..d48ce6e3d7eb12779565507d4190bbb9c6ab9f89 100644 (file)
--- 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);