diff options
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 } |