diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-07-22 22:55:04 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-07-22 22:55:04 +0530 |
commit | 27214bfca6c1ecf460dfd2ecb266a2451b3103cc (patch) | |
tree | f75f5bc10cc8b90f598dae5b17536ae39b82ab6c /src | |
parent | 847aa0e2ee91253dbcd66537dace25c450287396 (diff) | |
download | nnn-27214bfca6c1ecf460dfd2ecb266a2451b3103cc.tar.gz |
Fix #307
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)]; |