diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-04-29 17:28:18 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-04-29 17:28:18 +1200 |
commit | bf632725f7a2d6dafc74b523582e1b7137618251 (patch) | |
tree | 06de671b50c2ef1f18f701279068f0f8719c12f8 /bash | |
parent | Keep OLDPWD between logins (diff) | |
download | dotfiles-bf632725f7a2d6dafc74b523582e1b7137618251.tar.gz dotfiles-bf632725f7a2d6dafc74b523582e1b7137618251.zip |
Only print line if at least one arg
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bashrc.d/pa.bash | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bash/bashrc.d/pa.bash b/bash/bashrc.d/pa.bash index fc68ac28..6c3531f0 100644 --- a/bash/bashrc.d/pa.bash +++ b/bash/bashrc.d/pa.bash @@ -1,5 +1,7 @@ # Print arguments pa() { - printf '%s\n' "$@" + if (($#)) ; then + printf '%s\n' "$@" + fi } |