xref: /freebsd/bin/sh/tests/execution/unknown1.0 (revision 0957b409a90fd597c1e9124cbaf3edd2b488f4ac)
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