File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -676,8 +676,17 @@ repl_print_result(const struct resulttype *rt, const struct val *vals)
676676int
677677unescape (char * p0 , size_t * lenp )
678678{
679- /* unescape string like "\xe1\xba\x9b" in-place */
680-
679+ /*
680+ * unescape string like "\xe1\xba\x9b" in-place.
681+ *
682+ * Note: quote support here is an incomplete hack to allow
683+ * passing an empty name ("") on the repl prompt. (the spec
684+ * test has a case to examine zero-length name, which is
685+ * spec-wise valid.)
686+ * Because repl itself uses simple strtok to parse the input,
687+ * things like "a b" don't work on the prompt as you might
688+ * expect. "a\x20b" can work better.
689+ */
681690 bool in_quote = false;
682691 char * p = p0 ;
683692 char * wp = p ;
You can’t perform that action at this time.
0 commit comments