Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emane shell not allowing set config for parameters with period in name #47

Closed
sgalgano opened this issue Jun 9, 2016 · 0 comments
Closed
Assignees

Comments

@sgalgano
Copy link
Member

sgalgano commented Jun 9, 2016

Reported via email by Thomas Goff:

diff --git a/src/emanesh/emanesh/emaneshell.py b/src/emanesh/emanesh/emaneshell.py
index 79f3bd9..59d51c4 100644
--- a/src/emanesh/emanesh/emaneshell.py
+++ b/src/emanesh/emanesh/emaneshell.py
@@ -674,7 +674,7 @@ class EMANEShell(cmd.Cmd):
                <nem>         ::=  [1-9] | [1-9][0-9]+
                <expressions> ::=  <expression> | <expression> <expressions>
                <expression>  ::= <name>'='<values>
-               <name>        ::= [A-Za-z0-9]+
+               <name>        ::= [.A-Za-z0-9]+
                <values>      ::= <value> | <value>','<values>
                <value>       ::= value-string

@@ -751,7 +751,7 @@ class EMANEShell(cmd.Cmd):
             updates = []
             if len(args) > index:
                 for expression in args[index:]:
-                    m = re.match('^([0-9A-Za-z]+)=(.+)', expression)
+                    m = re.match('^([.0-9A-Za-z]+)=(.+)', expression)

                     def toBool(val):
                         val = val.lower()
@sgalgano sgalgano self-assigned this Jun 9, 2016
sgalgano added a commit that referenced this issue Jun 9, 2016
commands.

Submitted-by: Thomas Goff <thomas.goff@ll.mit.edu>
See #47
@sgalgano sgalgano closed this as completed Jun 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant