config root man

Current Path : /compat/linux/proc/self/root/usr/src/tools/regression/bin/sh/execution/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/src/tools/regression/bin/sh/execution/killed2.0

# $FreeBSD: release/9.1.0/tools/regression/bin/sh/execution/killed2.0 218105 2011-01-30 22:57:52Z jilles $
# Most shells print a message when a foreground job is killed by a signal.
# POSIX allows this, provided the message is sent to stderr, not stdout.
# Some trickery is needed to capture the message as redirecting stderr of
# the command itself does not affect it. The colon command ensures that
# the subshell forks for ${SH}.

exec 3>&1
r=`(${SH} -c 'kill $$'; :) 2>&1 >&3`
[ -n "$r" ]

Man Man