summaryrefslogtreecommitdiffstats
path: root/shell_cmds/sh/tests/builtins/eval6.0
blob: bfce89fc5346c3240c81b61345a4e1e03a8cb104 (plain) (blame)
1
2
3
4
5
# $FreeBSD: head/bin/sh/tests/builtins/eval6.0 249220 2013-04-06 22:30:46Z jilles $

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