aboutsummaryrefslogtreecommitdiff
path: root/sysutils/xe/files
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2016-07-31 18:31:07 +0000
committerPawel Pekala <pawel@FreeBSD.org>2016-07-31 18:31:07 +0000
commit0bd3d7bd10ef0e639da6de3b0c092fb7290b6d8d (patch)
tree53a05f9265e4db5bf7f1cc448fe79359f8a58237 /sysutils/xe/files
parentbf89dd70ae31bef17793d2664bb4d5086e55ff61 (diff)
downloadports-0bd3d7bd10ef0e639da6de3b0c092fb7290b6d8d.tar.gz
ports-0bd3d7bd10ef0e639da6de3b0c092fb7290b6d8d.zip
xe is a tool for constructing command lines from file listings or
arguments, which includes the best features of xargs(1) and apply(1). Benefits over xargs: - Sane defaults (behaves like xargs -d'\n' -I{} -n1 -r). - No weird parsing, arguments are separated linewise or by NUL byte. - Can also take arguments from command-line. - No shell involved unless -s is used. - {} replacing possible with multiple arguments. WWW: https://github.com/chneukirchen/xe/ PR: 211323 Submitted by: Tobias Kortkamp <t@tobik.me>
Notes
Notes: svn path=/head/; revision=419400
Diffstat (limited to 'sysutils/xe/files')
-rw-r--r--sysutils/xe/files/patch-xe.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/sysutils/xe/files/patch-xe.c b/sysutils/xe/files/patch-xe.c
new file mode 100644
index 000000000000..a8efd88ee2c4
--- /dev/null
+++ b/sysutils/xe/files/patch-xe.c
@@ -0,0 +1,27 @@
+--- xe.c.orig 2016-05-20 18:14:18 UTC
++++ xe.c
+@@ -13,6 +13,7 @@
+
+ #include <limits.h>
+ #include <errno.h>
++#include <signal.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -100,7 +101,7 @@ mywait()
+ } else if (WEXITSTATUS(status) > 125) {
+ exit(WEXITSTATUS(status));
+ }
+- } else if (WIFSIGNALED(status)) {
++ } else if (WIFSIGNALED(status) && !(fflag && WTERMSIG(status) == SIGPIPE)) {
+ fprintf(stderr, "xe: pid %d terminated by signal %d\n",
+ pid, WTERMSIG(status));
+ exit(125);
+@@ -353,6 +354,7 @@ main(int argc, char *argv[], char *envp[
+ pusharg("/bin/sh");
+ pusharg("-c");
+ pusharg(sflag);
++ pusharg("--");
+ pusharg("-");
+ } else if (optind >= cmdend) {
+ pusharg("printf");