diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-07-23 14:49:35 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-07-23 14:49:35 +1200 |
commit | 24d8c07c007cd85e3407118e351c82291fa87e37 (patch) | |
tree | 17ca3070c1f8483c34e78b0356167eeaca8b9bbd /bash/bashrc.d/pan.bash | |
parent | Add pan func ; print args with null delimiter (diff) | |
download | dotfiles-24d8c07c007cd85e3407118e351c82291fa87e37.tar.gz dotfiles-24d8c07c007cd85e3407118e351c82291fa87e37.zip |
More detail for pa() and pan() funcs
Diffstat (limited to 'bash/bashrc.d/pan.bash')
-rw-r--r-- | bash/bashrc.d/pan.bash | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bash/bashrc.d/pan.bash b/bash/bashrc.d/pan.bash index 14cd3625..97de3917 100644 --- a/bash/bashrc.d/pan.bash +++ b/bash/bashrc.d/pan.bash @@ -1,6 +1,8 @@ # Print arguments, null-delimited; you will probably want to write this into a -# file or as part of a pipeline +# file or as part of a pipeline. Compare pa(). pan() { - printf '%s\0' "$@" + if (($#)) ; then + printf '%s\0' "$@" + fi } |