diff options
author | Devin Teske <dteske@FreeBSD.org> | 2012-10-14 23:45:56 +0000 |
---|---|---|
committer | Devin Teske <dteske@FreeBSD.org> | 2012-10-14 23:45:56 +0000 |
commit | 42cdd52718460a4172ee6e51c6686a0cdf094554 (patch) | |
tree | d822c7158323a9842dab4f3dff76134b0b484b6d /usr.sbin/sysrc | |
parent | 2e88f5cd34f548461e51e4e50be7677adba10c69 (diff) | |
download | src-42cdd52718460a4172ee6e51c6686a0cdf094554.tar.gz src-42cdd52718460a4172ee6e51c6686a0cdf094554.zip |
Notes
Diffstat (limited to 'usr.sbin/sysrc')
-rw-r--r-- | usr.sbin/sysrc/sysrc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/sysrc/sysrc b/usr.sbin/sysrc/sysrc index 24a304db36e5..e1c15d63dbb6 100644 --- a/usr.sbin/sysrc/sysrc +++ b/usr.sbin/sysrc/sysrc @@ -251,7 +251,7 @@ shift $(( $OPTIND - 1 )) # Taint-check all rc.conf(5) files # errmsg="$pgm: Exiting due to previous syntax errors" -if ( : ${RC_CONFS?} ) > /dev/null 2>&1; then +if [ "${RC_CONFS+set}" ]; then ( for i in $RC_CONFS; do [ -e "$i" ] || continue /bin/sh -n "$i" || exit $FAILURE @@ -311,7 +311,7 @@ if [ "$JAIL" -o "$ROOTDIR" ]; then $( [ "$SHOW_VALUE" ] || echo \ -N ) $( [ "$SHOW_FILE" ] && echo \ -F ) " - if ( : ${RC_CONFS?} ) > /dev/null 2>&1; then + if [ "${RC_CONFS+set}" ]; then args="$args -f '$RC_CONFS'" fi for arg in "$@"; do @@ -437,8 +437,7 @@ if [ "$SHOW_ALL" ]; then # explicit value, modifying the default behavior of # source_rc_confs(). # - ( : ${RC_CONFS?} ) > /dev/null 2>&1 && - rc_conf_files="$RC_CONFS" + [ "${RC_CONFS+set}" ] && rc_conf_files="$RC_CONFS" source_rc_confs |