mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 09:12:44 +00:00
sysrc(8): Send error message to stderr (not stdout)
PR: bin/229806 Reported by: Andreas Sommer <andreas.sommer87@googlemail.com> MFC after: 3 days X-MFC-to: stable/11 stable/10 stable/9 Sponsored by: Smule, Inc.
This commit is contained in:
parent
4802a2cb54
commit
e719942791
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336350
@ -874,7 +874,8 @@ while [ $# -gt 0 ]; do
|
||||
*)
|
||||
if ! IGNORED=$( f_sysrc_get "$NAME?" ); then
|
||||
[ "$IGNORE_UNKNOWNS" -o "$QUIET" ] ||
|
||||
echo "$pgm: unknown variable '$NAME'"
|
||||
f_err "%s: unknown variable '%s'\n" \
|
||||
"$pgm" "$NAME"
|
||||
shift 1
|
||||
status=$FAILURE
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user