xref: /freebsd/bin/sh/tests/execution/unknown1.0 (revision f4b37ed0f8b307b1f3f0f630ca725d68f1dff30d)
1# $FreeBSD$
2
3nosuchtool 2>/dev/null
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
11/ 2>/dev/null
12[ $? -ne 126 ] && exit 1
13PATH=/usr bin 2>/dev/null
14[ $? -ne 126 ] && exit 1
15
16dummy=$(nosuchtool 2>/dev/null)
17[ $? -ne 127 ] && exit 1
18dummy=$(/var/empty/nosuchtool 2>/dev/null)
19[ $? -ne 127 ] && exit 1
20dummy=$( (nosuchtool) 2>/dev/null)
21[ $? -ne 127 ] && exit 1
22dummy=$( (/var/empty/nosuchtool) 2>/dev/null)
23[ $? -ne 127 ] && exit 1
24dummy=$(/ 2>/dev/null)
25[ $? -ne 126 ] && exit 1
26dummy=$(PATH=/usr bin 2>/dev/null)
27[ $? -ne 126 ] && exit 1
28
29exit 0
30