Home
last modified time | relevance | path

Searched hist:"6350 eae8e458637096ee44d0968961cfa4c41810" (Results 1 – 2 of 2) sorted by relevance

/freebsd/usr.sbin/sysrc/
H A Dsysrcdiff 6350eae8e458637096ee44d0968961cfa4c41810 Tue Feb 02 23:18:43 CET 2016 Devin Teske <dteske@FreeBSD.org> For +=/-=, add . and / to convenience characters

sysrc(8) supports key+=value and key-=value, but can be told what the
delimiter is by being passed as char1 (e.g., "sysrc key+=",value" to use a
comma as the delimiter instead of space). For convenience, if the first char
is alpha-numeric, it is assumed you wanted whitespace as the delimiter.

However, if you naively (as I just did) execute:
sysrc rc_conf_files+=/etc/rc.conf.other
the result is unexpected.

This commit makes `.' and `/' in-addition to alpha-numeric first-characters
to cause the default of whitespace to be used as the delimiter. This also
means that you can no longer use these as a delimiter.
H A Dsysrc.8diff 6350eae8e458637096ee44d0968961cfa4c41810 Tue Feb 02 23:18:43 CET 2016 Devin Teske <dteske@FreeBSD.org> For +=/-=, add . and / to convenience characters

sysrc(8) supports key+=value and key-=value, but can be told what the
delimiter is by being passed as char1 (e.g., "sysrc key+=",value" to use a
comma as the delimiter instead of space). For convenience, if the first char
is alpha-numeric, it is assumed you wanted whitespace as the delimiter.

However, if you naively (as I just did) execute:
sysrc rc_conf_files+=/etc/rc.conf.other
the result is unexpected.

This commit makes `.' and `/' in-addition to alpha-numeric first-characters
to cause the default of whitespace to be used as the delimiter. This also
means that you can no longer use these as a delimiter.