diff options
author | 0xACE <0xaced@gmail.com> | 2019-08-04 02:49:48 +0200 |
---|---|---|
committer | 0xACE <0xaced@gmail.com> | 2019-08-04 02:49:48 +0200 |
commit | 2baa42b877ca0bc338a1852397ca3a0aa7c30b79 (patch) | |
tree | e47551c8e1fc73172e67d0f3263cb304c2baa9b5 | |
parent | 30651d16d7ff26e5b71cb7c53d0409516e766470 (diff) | |
download | nnn-2baa42b877ca0bc338a1852397ca3a0aa7c30b79.tar.gz |
MacOS support for archive_selection()
-rw-r--r-- | src/nnn.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1303,6 +1303,9 @@ static void archive_selection(const char *cmd, const char *archive, const char * snprintf(buf, CMD_LEN_MAX, #ifdef __linux__ "sed -ze 's|^%s/||' '%s' | xargs -0 %s %s", curpath, g_cppath, cmd, archive); +#elif defined __APPLE__ + "cat '%s' | tr '\\0' '\n' | sed -e 's|^%s/||' | tr '\n' '\\0' | xargs -0 %s %s", + g_cppath, curpath, cmd, archive); #else "cat %s | xargs -0 -o %s %s", g_cppath, cmd, archive); #endif |