From 3ed997195b7eccf1438311dc332d93a8dce06d19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Andr=C3=A9e?= Date: Tue, 8 May 2012 06:17:09 +0200 Subject: [PATCH] much better --- ponysay | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ponysay b/ponysay index 5fcc5bf8..345dd0ee 100755 --- a/ponysay +++ b/ponysay @@ -50,10 +50,13 @@ say() { export PERL_UNICODE=S if [ "$TERM" = "linux" ]; then - echo -ne '\ec' + echo -ne '\ec' fi - exec "$cmd" -f "$pony" "${wrap:+-W$wrap}" | (exec ponysaytruncater `tput cols || echo 0` 2>/dev/null || ./ponysaytruncater `tput cols || echo 0` 2>/dev/null || cat) + exec "$cmd" -f "$pony" "${wrap:+-W$wrap}" | (ponysaytruncater `tput cols || echo 0` 2>/dev/null || + ${HOME}/.local/bin/ponysaytruncater `tput cols || echo 0` 2>/dev/null || + ./ponysaytruncater `tput cols || echo 0` 2>/dev/null || + cat) } while getopts f:W:lhv OPT