aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/ax.sh4
-rw-r--r--man/man1/ax.1df2
2 files changed, 3 insertions, 3 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 ;;
diff --git a/man/man1/ax.1df b/man/man1/ax.1df
index ffdaabe3..a1513e06 100644
--- a/man/man1/ax.1df
+++ b/man/man1/ax.1df
@@ -5,7 +5,7 @@
.SH SYNOPSIS
.B ax '2.0+3.0'
.br
-.B ax %.2f 'sin(2)'
+.B ax '%.2f\n' 'sin(2)'
.SH DESCRIPTION
.B ax
evaluates an expression given on the command line with awk(1) and prints its