xref: /freebsd/bin/sh/tests/execution/unknown1.0 (revision 815b7436a7c6302365b6514194d27d41cb736227)
1
2nosuchtool 2>/dev/null
3[ $? -ne 127 ] && exit 1
4/var/empty/nosuchtool 2>/dev/null
5[ $? -ne 127 ] && exit 1
6(nosuchtool) 2>/dev/null
7[ $? -ne 127 ] && exit 1
8(/var/empty/nosuchtool) 2>/dev/null
9[ $? -ne 127 ] && exit 1
10/ 2>/dev/null
11[ $? -ne 126 ] && exit 1
12PATH=/usr bin 2>/dev/null
13[ $? -ne 126 ] && exit 1
14
15dummy=$(nosuchtool 2>/dev/null)
16[ $? -ne 127 ] && exit 1
17dummy=$(/var/empty/nosuchtool 2>/dev/null)
18[ $? -ne 127 ] && exit 1
19dummy=$( (nosuchtool) 2>/dev/null)
20[ $? -ne 127 ] && exit 1
21dummy=$( (/var/empty/nosuchtool) 2>/dev/null)
22[ $? -ne 127 ] && exit 1
23dummy=$(/ 2>/dev/null)
24[ $? -ne 126 ] && exit 1
25dummy=$(PATH=/usr bin 2>/dev/null)
26[ $? -ne 126 ] && exit 1
27
28exit 0
29