aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-07-23 14:46:32 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-07-23 14:46:32 +1200
commit7c1dcc030d1aa3f5f000be34e1b5072487fb6d0d (patch)
tree44075c64c35f2650322052e8ed58545371612c87 /bash/bashrc.d
parentAdd apf func (argument prepend [from] file) (diff)
downloaddotfiles-7c1dcc030d1aa3f5f000be34e1b5072487fb6d0d.tar.gz
dotfiles-7c1dcc030d1aa3f5f000be34e1b5072487fb6d0d.zip
Add pan func ; print args with null delimiter
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r--bash/bashrc.d/pan.bash6
1 files changed, 6 insertions, 0 deletions
diff --git a/bash/bashrc.d/pan.bash b/bash/bashrc.d/pan.bash
new file mode 100644
index 00000000..14cd3625
--- /dev/null
+++ b/bash/bashrc.d/pan.bash
@@ -0,0 +1,6 @@
+# Print arguments, null-delimited; you will probably want to write this into a
+# file or as part of a pipeline
+pan() {
+ printf '%s\0' "$@"
+}
+