$OpenBSD: patch-src_nnn_c,v 1.3 2021/11/25 18:52:55 sdk Exp $

Cherry pick patch to make file renames more reliable.
https://patch-diff.githubusercontent.com/raw/jarun/nnn/pull/1243.diff

Index: src/nnn.c
--- src/nnn.c.orig
+++ src/nnn.c
@@ -2729,12 +2729,7 @@ static void archive_selection(const char *cmd, const c
 	}
 
 	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);
