From 6712b6c5942033fd94c08a2b523a1406ad575cee Mon Sep 17 00:00:00 2001 From: Stefan Krulj Date: Tue, 4 Dec 2012 14:03:57 +0100 Subject: [PATCH] quote bug in split-args-fsm fixed --- sys/util.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/util.py b/sys/util.py index b2e711c..2e303ab 100644 --- a/sys/util.py +++ b/sys/util.py @@ -31,8 +31,9 @@ def split_args(txt): if split_args_state==SA_S0: if c=='"': split_args_state = SA_QUOT - args.append(current) - current = u"" + if len(current)!=0: + args.append(current) + current = u"" elif c in " \t\n": if len(current)!=0: args.append(current)