aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/paz.bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc.d/paz.bash')
-rw-r--r--bash/bashrc.d/paz.bash8
1 files changed, 8 insertions, 0 deletions
diff --git a/bash/bashrc.d/paz.bash b/bash/bashrc.d/paz.bash
new file mode 100644
index 00000000..99907298
--- /dev/null
+++ b/bash/bashrc.d/paz.bash
@@ -0,0 +1,8 @@
+# Print arguments, null-delimited; you will probably want to write this into a
+# file or as part of a pipeline. Compare pa().
+paz() {
+ if (($#)) ; then
+ printf '%s\0' "$@"
+ fi
+}
+