From 57ceac45a4891e0045c0aec91902ca6741ccf274 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 18 Aug 2012 17:59:53 +0200 Subject: Message can now contain ':s --- ponysay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ponysay.py') diff --git a/ponysay.py b/ponysay.py index 1714e77..a55fbca 100755 --- a/ponysay.py +++ b/ponysay.py @@ -331,7 +331,7 @@ class ponysay(): if linuxvt: print('\033[H\033[2J', end='') - os.system(cmd + (' -W ' + args.wrap if args.wrap is not None else '') + ' -f ' + pony + ' \'' + msg + '\'') + os.system(cmd + (' -W ' + args.wrap if args.wrap is not None else '') + ' -f ' + pony + ' \'' + msg.replace('\'', '\'\\\'\'') + '\'') -- cgit