The sysrc(8) man-page states that `-e' is used to "print query results
as sh(1) compatible syntax".
Flags such as -v' when combined with -e' could make the output
incompatible with sh(1).
This is a breaking change that should not be MFC'd because it both
alters certain output formats and also fixes a bug that others may
have relied upon. When changing value of an existing variable, the
`-e' output would produce syntax that would revert the change:
$name="$before" # -> $after
This change improves the output of `-e' to:
_$name="$before" $name="$after"
Meanwhile, the output of `-v -e' _queries_ are changed from:
: $file; $name="$value"
to a more useful syntax:
_file_$name="$file" $name="$value"
Further, the output of `-v -e' _assignments_ are changed from:
$file: $name="$before" # -> $after
to the more useful:
_file_$name="$file" _$name="$before" $name="$after"
The sh(1) compatible output now intelligently quotes values so that
special characters in either filenames or values cannot break sh(1)
parsing. Values are shown unquoted, double-quoted, or single-quoted
depending on contents.
In addition:
-d' now respects -e' to produces sh(1) compatible syntax.
-d' now respects -n' to omit variable name.
-d' now respects -N' to omit the description.