Date: Fri, 10 Aug 2018 20:08:00 +0000 (UTC) From: Devin Teske <dteske@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r337588 - in stable: 10/usr.sbin/sysrc 11/usr.sbin/sysrc 9/usr.sbin/sysrc Message-ID: <201808102008.w7AK80ou086233@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dteske Date: Fri Aug 10 20:07:59 2018 New Revision: 337588 URL: https://svnweb.freebsd.org/changeset/base/337588 Log: MFC SVN r336350: Send sysrc(8) error message to stderr (not stdout) PR: bin/229806 Reported by: Andreas Sommer <andreas.sommer87@googlemail.com> Sponsored by: Smule, Inc. Modified: stable/9/usr.sbin/sysrc/sysrc Directory Properties: stable/9/ (props changed) stable/9/usr.sbin/ (props changed) stable/9/usr.sbin/sysrc/ (props changed) Changes in other areas also in this revision: Modified: stable/10/usr.sbin/sysrc/sysrc stable/11/usr.sbin/sysrc/sysrc Directory Properties: stable/10/ (props changed) stable/11/ (props changed) Modified: stable/9/usr.sbin/sysrc/sysrc ============================================================================== --- stable/9/usr.sbin/sysrc/sysrc Fri Aug 10 20:07:00 2018 (r337587) +++ stable/9/usr.sbin/sysrc/sysrc Fri Aug 10 20:07:59 2018 (r337588) @@ -674,7 +674,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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808102008.w7AK80ou086233>