From d6617592244e76eb0d85c21d3e4d9350a5cc59ba Mon Sep 17 00:00:00 2001 From: Jakub Wilk Date: Mon, 11 Mar 2019 21:10:53 +0100 Subject: [PATCH] Use printf(1) for printing \f "echo -e" is not portable. --- README.md | 2 +- sm.6 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0c36444..8ca3b0b 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ at the beginning or the end are ignored. The input is assumed to be UTF-8 encod This can be used to create automatic displays of changing data or similar tricks. For example, the following command will create a simple digital watch: - (while sleep 1; do date +%T; echo -e '\f'; done) | sm - + (while sleep 1; do date +%T; printf '\f'; done) | sm - Contact diff --git a/sm.6 b/sm.6 index 00ee6bd..6e760d4 100644 --- a/sm.6 +++ b/sm.6 @@ -96,7 +96,7 @@ once. Newline characters at the beginning or the end are ignored. The input is a .PP This can be used to create automatic displays of changing data or similar tricks. For example, the following command will create a simple digital watch: .sp -.B (while sleep 1; do date +%T; echo -e '\\\\f'; done) | sm - +.B (while sleep 1; do date +%T; printf '\\\\f'; done) | sm - .SH AUTHOR