aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-07-22 22:55:04 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-07-22 22:55:04 +0530
commit27214bfca6c1ecf460dfd2ecb266a2451b3103cc (patch)
treef75f5bc10cc8b90f598dae5b17536ae39b82ab6c /src
parent847aa0e2ee91253dbcd66537dace25c450287396 (diff)
downloadnnn-27214bfca6c1ecf460dfd2ecb266a2451b3103cc.tar.gz
Fix #307
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 6a2e643..beaa87f 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1193,7 +1193,7 @@ static bool batch_rename(const char *path)
int fd1, fd2, i;
uint count = 0, lines = 0;
bool dir = FALSE, ret = FALSE;
- const char renamecmd[] = "paste -d'\n' %s %s | xargs -d'\n' -n2 mv 2>/dev/null";
+ const char renamecmd[] = "paste -d'\n' %s %s | tr '\n' '\\0' | xargs -0 -n2 mv";
char foriginal[TMP_LEN_MAX] = {0};
char buf[sizeof(renamecmd) + (PATH_MAX << 1)];