aboutsummaryrefslogtreecommitdiff
path: root/ponysay
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-05-07 02:05:57 +0200
committerMattias Andrée <maandree@operamail.com>2012-05-07 02:05:57 +0200
commit518058c3e5f297777ef454daa00533d385a49c41 (patch)
tree6fedd3e81f505345e2b0f9e971c9d3abba6045cf /ponysay
parent986d158bfe01d296a88c4c52f99f48313e6a4783 (diff)
downloadponysay-518058c3e5f297777ef454daa00533d385a49c41.tar.gz
ponysay-518058c3e5f297777ef454daa00533d385a49c41.tar.bz2
ponysay-518058c3e5f297777ef454daa00533d385a49c41.zip
using truncater if found
Diffstat (limited to 'ponysay')
-rwxr-xr-xponysay2
1 files changed, 1 insertions, 1 deletions
diff --git a/ponysay b/ponysay
index cf27523..03d2bd8 100755
--- a/ponysay
+++ b/ponysay
@@ -44,7 +44,7 @@ say() {
# Ponies use UTF-8 drawing characters. Prevent a Perl warning.
export PERL_UNICODE=S
- exec "$cmd" -f "$pony" "${wrap:+-W$wrap}"
+ exec "$cmd" -f "$pony" "${wrap:+-W$wrap}" | (ponysaytruncater `tput cols || echo 0` 2>/dev/null || ./ponysaytruncater `tput cols || echo 0` 2>/dev/null || cat)
}
while getopts f:W:lhv OPT