]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - bin/sh/tests/expansion/cmdsubst22.0
MFC r314686: sh: Fix crash if a -T trap is taken during command substitution.
[FreeBSD/stable/10.git] / bin / sh / tests / expansion / cmdsubst22.0
1 # $FreeBSD$
2
3 set -T
4 trapped=''
5 trap "trapped=x$trapped" TERM
6 [ "x$(:; kill $$)y" = xy ] && [ "$trapped" = x ]