1 # $FreeBSD: head/bin/sh/tests/execution/unknown1.0 197820 2009-10-06 22:00:14Z jilles $
4 [ $? -ne 127 ] && exit 1
5 /var/empty/nosuchtool 2>/dev/null
6 [ $? -ne 127 ] && exit 1
7 (nosuchtool) 2>/dev/null
8 [ $? -ne 127 ] && exit 1
9 (/var/empty/nosuchtool) 2>/dev/null
10 [ $? -ne 127 ] && exit 1
12 [ $? -ne 126 ] && exit 1
13 PATH=/usr bin 2>/dev/null
14 [ $? -ne 126 ] && exit 1
16 dummy=$(nosuchtool 2>/dev/null)
17 [ $? -ne 127 ] && exit 1
18 dummy=$(/var/empty/nosuchtool 2>/dev/null)
19 [ $? -ne 127 ] && exit 1
20 dummy=$( (nosuchtool) 2>/dev/null)
21 [ $? -ne 127 ] && exit 1
22 dummy=$( (/var/empty/nosuchtool) 2>/dev/null)
23 [ $? -ne 127 ] && exit 1
24 dummy=$(/ 2>/dev/null)
25 [ $? -ne 126 ] && exit 1
26 dummy=$(PATH=/usr bin 2>/dev/null)
27 [ $? -ne 126 ] && exit 1