From deead97e23981074d0e33520558d54b6e34fa374 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Wed, 24 Nov 2021 11:40:59 +0100 Subject: [PATCH] drop unnecessary ifdef __linux__ since nnn requires gsed anyway, why don't use it? Probably forgot in #1210 --- src/nnn.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index 1f020087..20a6051e 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -2729,12 +2729,7 @@ 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, selpath, cmd, archive -#else - "tr '\\0' '\n' < '%s' | "SED" -e 's|^%s/||' | tr '\n' '\\0' | xargs -0 %s %s", - selpath, curpath, cmd, archive -#endif ); spawn(utils[UTIL_SH_EXEC], buf, NULL, NULL, F_CLI | F_CONFIRM); free(buf); -- 2.48.1