From 09b847d11532b6b5c1e257d4f4eb8cbc2f257119 Mon Sep 17 00:00:00 2001 From: delphij Date: Sat, 3 Mar 2012 02:35:45 +0000 Subject: [PATCH] MFC r231888: Put the signal trap output to standard error instead of standard output. Without this change, pressing ^T could result in rc.d script putting junk strings like: Script running in configuration files when redirecting standard output to these files. git-svn-id: svn://svn.freebsd.org/base/stable/9@232434 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- etc/rc.subr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/rc.subr b/etc/rc.subr index 85d4ab481..74846e811 100644 --- a/etc/rc.subr +++ b/etc/rc.subr @@ -1027,9 +1027,9 @@ run_rc_script() if [ -n "$rc_fast_and_loose" ]; then set $_arg; . $_file else - ( trap "echo Script $_file interrupted; kill -QUIT $$" 3 - trap "echo Script $_file interrupted; exit 1" 2 - trap "echo Script $_file running" 29 + ( trap "echo Script $_file interrupted >&2 ; kill -QUIT $$" 3 + trap "echo Script $_file interrupted >&2 ; exit 1" 2 + trap "echo Script $_file running >&2" 29 set $_arg; . $_file ) fi fi -- 2.45.0