]> git.saurik.com Git - apple/shell_cmds.git/blob - sh/tests/execution/unknown1.0
shell_cmds-216.60.1.tar.gz
[apple/shell_cmds.git] / sh / tests / execution / unknown1.0
1 # $FreeBSD: head/bin/sh/tests/execution/unknown1.0 197820 2009-10-06 22:00:14Z jilles $
2
3 nosuchtool 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
13 PATH=/usr bin 2>/dev/null
14 [ $? -ne 126 ] && exit 1
15
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
28
29 exit 0