aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-10-14 22:08:07 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-10-14 22:08:07 +0530
commitff562983e139a8cceb0419740b5979495790ac4e (patch)
treeb7e79c9584d31e35a6548ba4917aab25dc63e1c2 /src
parentb9d183db26956cc1a3e1260dabd5c40d9ad2e8b4 (diff)
downloadnnn-ff562983e139a8cceb0419740b5979495790ac4e.tar.gz
Fix build break on macOS
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 093cc37..5f1f565 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -381,6 +381,9 @@ static char * const utils[] = {
#ifdef __linux__
static char cp[] = "cpg -giRp";
static char mv[] = "mvg -gi";
+#else
+static char cp[] = "cp -iRp";
+static char mv[] = "mv -i";
#endif
/* Common strings */
@@ -1235,7 +1238,7 @@ static void cpstr(char *buf)
#ifdef __linux__
"xargs -0 -a %s -%c {} %s {} .", g_selpath, REPLACE_STR, cp);
#else
- "cat %s | xargs -0 -o -%c {} cp -iRp {} .", g_selpath, REPLACE_STR);
+ "cat %s | xargs -0 -o -%c {} %s {} .", g_selpath, REPLACE_STR, cp);
#endif
}
@@ -1245,7 +1248,7 @@ static void mvstr(char *buf)
#ifdef __linux__
"xargs -0 -a %s -%c {} %s {} .", g_selpath, REPLACE_STR, mv);
#else
- "cat %s | xargs -0 -o -%c {} mv -i {} .", g_selpath, REPLACE_STR);
+ "cat %s | xargs -0 -o -%c {} %s {} .", g_selpath, REPLACE_STR, mv);
#endif
}