]> Sergey Matveev's repositories - nnn.git/commitdiff
drop unnecessary ifdef __linux__
authorOmar Polo <op@omarpolo.com>
Wed, 24 Nov 2021 10:40:59 +0000 (11:40 +0100)
committerOmar Polo <op@omarpolo.com>
Wed, 24 Nov 2021 10:40:59 +0000 (11:40 +0100)
since nnn requires gsed anyway, why don't use it?
Probably forgot in #1210

src/nnn.c

index 1f020087398f47d044fca9af953d2802f2b2083a..20a6051ec7f08c6d668b4612aa7f30b31da788aa 100644 (file)
--- 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);