aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-01-11 19:21:21 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-01-11 19:21:21 +1300
commitd371bf4dc33e243673147cb28770de252b5759db (patch)
tree1a49cf40ca9d1c68c69f243e1338a24c55e8924f /bin
parentMake first ax(1df) arg safer, warn on second arg (diff)
downloaddotfiles-d371bf4dc33e243673147cb28770de252b5759db.tar.gz
dotfiles-d371bf4dc33e243673147cb28770de252b5759db.zip
Make newline explicit for ax(1df)
This makes it a little more flexible, if you genuinely don't want a newline in the output.
Diffstat (limited to 'bin')
-rw-r--r--bin/ax.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ax.sh b/bin/ax.sh
index 8098125d..0007cbed 100644
--- a/bin/ax.sh
+++ b/bin/ax.sh
@@ -3,8 +3,8 @@
# Count arguments
case $# in
- # If one argument, we assume format is %s
- 1) form=%s expr=$1 ;;
+ # If one argument, we assume format is %s\n
+ 1) form='%s\n' expr=$1 ;;
# If two arguments, first is format, second expression
2) form=$1 expr=$2 ;;