Module Name: src
Committed By: apb
Date: Tue Nov 8 19:36:30 UTC 2011
Modified Files:
src/etc: MAKEDEV.tmpl
Log Message:
The previous change made "nooutput -2" discard both stdout and
stderr, whereas it should discard only stderr. This commit
should fix that problem.
To generate a diff of this commit:
cvs rdiff -u -r1.146 -r1.147 src/etc/MAKEDEV.tmpl
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/etc/MAKEDEV.tmpl
diff -u src/etc/MAKEDEV.tmpl:1.146 src/etc/MAKEDEV.tmpl:1.147
--- src/etc/MAKEDEV.tmpl:1.146 Tue Nov 8 19:11:19 2011
+++ src/etc/MAKEDEV.tmpl Tue Nov 8 19:36:30 2011
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $NetBSD: MAKEDEV.tmpl,v 1.146 2011/11/08 19:11:19 apb Exp $
+# $NetBSD: MAKEDEV.tmpl,v 1.147 2011/11/08 19:36:30 apb Exp $
#
# Copyright (c) 2003,2007,2008 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -382,7 +382,7 @@ nooutput()
local junk
case "$flags" in
"-1") junk="$( "$@" )" ;;
- "-2") junk="$( exec 4>&1 ; { "$@" ; } 2>&1 1>&4 )" ;;
+ "-2") ( exec 4>&1 ; junk="$( { "$@" ; } 2>&1 1>&4 )" ) ;;
"-12") junk="$( { "$@" ; } 2>&1 )" ;;
*) warn "Incorrect use of nooutput" ;;
esac