summaryrefslogtreecommitdiffstats
path: root/shell_cmds/sh/tests/builtins/eval4.0
blob: 82c3ea9c4f440c7b12dfa9530e1310549e8e50d1 (plain) (blame)
1
2
3
4
5
# $FreeBSD: head/bin/sh/tests/builtins/eval4.0 210738 2010-08-01 22:39:07Z jilles $

# eval should preserve $? from command substitutions when starting
# the parsed command.
[ $(eval 'echo $?' $(false)) = 1 ]