Return to compile.c CVS log | Up to [local] / src / usr.bin / sed |
version 1.31, 2009/10/27 23:59:43 | version 1.32, 2010/07/01 17:02:02 | ||
---|---|---|---|
|
|
||
else if (c == '\n') | else if (c == '\n') | ||
err(COMPILE, "newline can not be used as a string delimiter"); | err(COMPILE, "newline can not be used as a string delimiter"); | ||
while (*p) { | while (*p) { | ||
if (*p == '[') { | if (*p == '[' && *p != c) { | ||
if ((d = compile_ccl(&p, d)) == NULL) | if ((d = compile_ccl(&p, d)) == NULL) | ||
err(COMPILE, "unbalanced brackets ([])"); | err(COMPILE, "unbalanced brackets ([])"); | ||
continue; | continue; |