From b795b9b887928cf21cb9286fd70ba48b32073462 Mon Sep 17 00:00:00 2001 From: Marcus Whybrow Date: Tue, 17 Jul 2012 23:34:09 +0100 Subject: [PATCH] Fixed bug preventing say command from accepting only 1 argument. Had to accept two or more arguments due to a regex mistake. --- init/msm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/msm b/init/msm index bbcdbef..bb843d9 100755 --- a/init/msm +++ b/init/msm @@ -2435,7 +2435,7 @@ register_command() { # at this stage be accepted as any non-zero string if [[ "$word" =~ ^\<.*\>$ ]]; then if [[ "$word" == "" ]]; then - regex="${regex}([^ ]+|\\\"[^\\\"]*\\\")( [^ ]+|\\\"[^\\\"]*\\\")+ " + regex="${regex}([^ ]+|\\\"[^\\\"]*\\\")( [^ ]+|\\\"[^\\\"]*\\\")* " else regex="${regex}([^ ]+|\\\"[^\\\"]*\\\") " fi