aboutsummaryrefslogtreecommitdiff
path: root/aux/redir_exe.sh
diff options
context:
space:
mode:
Diffstat (limited to 'aux/redir_exe.sh')
-rwxr-xr-xaux/redir_exe.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/aux/redir_exe.sh b/aux/redir_exe.sh
new file mode 100755
index 00000000..3ab78e64
--- /dev/null
+++ b/aux/redir_exe.sh
@@ -0,0 +1,6 @@
+#!/bin/sh -efu
+# stdin stdout ...
+
+exec < "$1"; shift
+exec > "$1"; shift
+exec "$@"