Permalink
Browse files

Allow underscore in tube names.

Closes gh-24.
  • Loading branch information...
1 parent 1894d97 commit 88cd86be5aaeffb73d6cffb7457cd382c84cbc9d @kr committed Mar 1, 2010
Showing with 8 additions and 4 deletions.
  1. +4 −3 doc/protocol.txt
  2. +1 −1 prot.c
  3. +2 −0 sh-tests/allow-underscore.commands
  4. +1 −0 sh-tests/allow-underscore.expected
View
@@ -12,9 +12,10 @@ nonnegative.
Names, in this protocol, are ASCII strings. They may contain letters (A-Z and
a-z), numerals (0-9), hyphen ("-"), plus ("+"), slash ("/"), semicolon (";"),
-dot ("."), dollar-sign ("$"), and parentheses ("(" and ")"), but they may not
-begin with a hyphen. They are terminated by white space (either a space char or
-end of line). Each name must be at least one character long.
+dot ("."), dollar-sign ("$"), underscore ("_"), and parentheses ("(" and ")"),
+but they may not begin with a hyphen. They are terminated by white space
+(either a space char or end of line). Each name must be at least one character
+long.
The protocol contains two kinds of data: text lines and unstructured chunks of
data. Text lines are used for client commands and server responses. Chunks are
View
2 prot.c
@@ -46,7 +46,7 @@ size_t job_data_size_limit = JOB_DATA_SIZE_LIMIT_DEFAULT;
#define NAME_CHARS \
"ABCDEFGHIJKLMNOPQRSTUVWXYZ" \
"abcdefghijklmnopqrstuvwxyz" \
- "0123456789-+/;.$()"
+ "0123456789-+/;.$_()"
#define CMD_PUT "put "
#define CMD_PEEKJOB "peek "
@@ -0,0 +1,2 @@
+use x_y
+quit
@@ -0,0 +1 @@
+USING x_y

0 comments on commit 88cd86b

Please sign in to comment.