summaryrefslogtreecommitdiffstats
path: root/contrib/awk/test/pid.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/awk/test/pid.sh')
-rwxr-xr-xcontrib/awk/test/pid.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/awk/test/pid.sh b/contrib/awk/test/pid.sh
new file mode 100755
index 0000000..a19d72c
--- /dev/null
+++ b/contrib/awk/test/pid.sh
@@ -0,0 +1,5 @@
+#! /bin/sh
+AWK=${AWK-../gawk}
+echo $$ > _pid.in
+echo $1 >> _pid.in
+exec $AWK -f pid.awk _pid.in
OpenPOWER on IntegriCloud