aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-05-06 13:12:31 -0400
committerDave Reisner <dreisner@archlinux.org>2014-05-06 13:27:16 -0400
commit031743a96cf602ec20efaf6cbc292c5fd8d023bb (patch)
tree228bb953d660311e5da0ef4c14cf04762ab97c75
parenteea560d1a5a1a56bfab899696a396206ed226545 (diff)
downloadmirror-ponymix-031743a96cf602ec20efaf6cbc292c5fd8d023bb.tar.gz
mirror-ponymix-031743a96cf602ec20efaf6cbc292c5fd8d023bb.tar.bz2
mirror-ponymix-031743a96cf602ec20efaf6cbc292c5fd8d023bb.zip
I gotta have more ponies
-rw-r--r--ponymix.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ponymix.cc b/ponymix.cc
index 1bf0384..05fbf89 100644
--- a/ponymix.cc
+++ b/ponymix.cc
@@ -468,6 +468,9 @@ static const std::pair<const string, const Command>& string_to_command(
}
static void version() {
+ execlp("ponysay", "ponysay", "-b", "", "ponymix " PONYMIX_VERSION, NULL);
+
+ // Some people are pony haters.
fputs("ponymix v" PONYMIX_VERSION "\n", stdout);
exit(EXIT_SUCCESS);
}