diff options
author | dteske <dteske@FreeBSD.org> | 2016-02-02 22:18:43 +0000 |
---|---|---|
committer | dteske <dteske@FreeBSD.org> | 2016-02-02 22:18:43 +0000 |
commit | 6d511d769313fd1dae574a1d395369df219e86b6 (patch) | |
tree | 7a204aed6324ced6e56277a99cd65eb4cd6352fd /bin/test | |
parent | 34fbc07d367c7631e872f66e3b53df4956e8c89f (diff) | |
download | FreeBSD-src-6d511d769313fd1dae574a1d395369df219e86b6.zip FreeBSD-src-6d511d769313fd1dae574a1d395369df219e86b6.tar.gz |
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.
Diffstat (limited to 'bin/test')
0 files changed, 0 insertions, 0 deletions