aboutsummaryrefslogtreecommitdiffstats
path: root/test/pid.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/pid.sh')
-rwxr-xr-xtest/pid.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/pid.sh b/test/pid.sh
new file mode 100755
index 00000000..a19d72ce
--- /dev/null
+++ b/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