svn commit: r338120 - head/usr.sbin/config
Kyle Evans
kevans at FreeBSD.org
Mon Aug 20 22:08:04 UTC 2018
Author: kevans
Date: Mon Aug 20 22:08:03 2018
New Revision: 338120
URL: https://svnweb.freebsd.org/changeset/base/338120
Log:
config(8): Allow escape-quoted empty strings
For use with things like BOOT_TAG=\"\" -- there are valid reasons to allow
empty strings, especially as these are usually being passed through as
options. The same argument could perhaps be made for the unquoted
variant in things like MODULES_OVERRIDE="", but it's not immediately clear
that this is an issue so I've left it untouched.
MFC after: 3 days
Modified:
head/usr.sbin/config/lang.l
Modified: head/usr.sbin/config/lang.l
==============================================================================
--- head/usr.sbin/config/lang.l Mon Aug 20 21:40:14 2018 (r338119)
+++ head/usr.sbin/config/lang.l Mon Aug 20 22:08:03 2018 (r338120)
@@ -127,7 +127,7 @@ PATH [./][-/.%^A-Za-z_0-9]+
BEGIN ENVC;
return i;
}
-\\\"[^"]+\\\" {
+\\\"[^"]*\\\" {
BEGIN 0;
yytext[yyleng-2] = '"';
yytext[yyleng-1] = '\0';
More information about the svn-src-head
mailing list