From 518058c3e5f297777ef454daa00533d385a49c41 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 7 May 2012 02:05:57 +0200 Subject: using truncater if found --- ponysay | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ponysay') 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 -- cgit