mirror of
https://github.com/jarun/nnn.git
synced 2025-01-24 17:56:41 +00:00
Fix #307
This commit is contained in:
parent
847aa0e2ee
commit
27214bfca6
|
@ -1193,7 +1193,7 @@ static bool batch_rename(const char *path)
|
||||||
int fd1, fd2, i;
|
int fd1, fd2, i;
|
||||||
uint count = 0, lines = 0;
|
uint count = 0, lines = 0;
|
||||||
bool dir = FALSE, ret = FALSE;
|
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 foriginal[TMP_LEN_MAX] = {0};
|
||||||
char buf[sizeof(renamecmd) + (PATH_MAX << 1)];
|
char buf[sizeof(renamecmd) + (PATH_MAX << 1)];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue