diff options
author | Mattias Andrée <maandree@operamail.com> | 2012-05-07 02:05:57 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2012-05-07 02:05:57 +0200 |
commit | 518058c3e5f297777ef454daa00533d385a49c41 (patch) | |
tree | 6fedd3e81f505345e2b0f9e971c9d3abba6045cf /ponysay | |
parent | 986d158bfe01d296a88c4c52f99f48313e6a4783 (diff) | |
download | ponysay-518058c3e5f297777ef454daa00533d385a49c41.tar.gz ponysay-518058c3e5f297777ef454daa00533d385a49c41.tar.bz2 ponysay-518058c3e5f297777ef454daa00533d385a49c41.zip |
using truncater if found
Diffstat (limited to 'ponysay')
-rwxr-xr-x | ponysay | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |