diff options
Diffstat (limited to 'ponymix.cc')
-rw-r--r-- | ponymix.cc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -472,7 +472,8 @@ static const std::pair<const string, const Command>& string_to_command( } static void version() { - execlp("ponysay", "ponysay", "-b", "", "ponymix " PONYMIX_VERSION, NULL); + if (isatty(fileno(stdout))) + execlp("ponysay", "ponysay", "-b", "", "ponymix " PONYMIX_VERSION, NULL); // Some people are pony haters. fputs("ponymix v" PONYMIX_VERSION "\n", stdout); |