Cope with quotation marks around font names in /etc/rc.conf .

PR:		17330
Reported by:	Anatoly Vorobey <mellon@pobox.com>
This commit is contained in:
sheldonh 2000-03-14 09:28:00 +00:00
parent dd06abf7e3
commit 5f870bcbbb

View File

@ -85,7 +85,7 @@ sub font_current {
while(<F>) {
/^#/ && next;
if (/^\s*font[0-9]+x[0-9]+\s*=\s*(\S+)/) {
if (/^\s*font[0-9]+x[0-9]+\s*=\s*\"?([^\s\"]+)\"?/) {
$font_current = $1 if $1 ne "NO";
}
}