summaryrefslogtreecommitdiffhomepage
path: root/tests/linux/errors.exp
blob: 9d2eda2fef472fc7a2d57eabe523316118a26731 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
SCRIPT: line 2: arithmetic: syntax error: "1+"
s=2
SCRIPT: line 3: r: is read only
s=2
SCRIPT: line 4: unset_variable: parameter not set
s=2
SCRIPT: line 5: cd: /nonexistent: No such file or directory
s=1
SCRIPT: line 6: nonexistent_cmd: not found
s=127
SCRIPT: line 7: .: /nonexistent/file: not found
s=2
SCRIPT: line 8: shift: cannot shift 3
s=2
s=0
return outside s=0
SCRIPT: line 12: syntax error: unexpected 'end of file'
s=2
SCRIPT: line 12: trap: BOGUS: bad signal
s=1
SCRIPT: line 13: kill: bad signal
s=2
SCRIPT: line 14: 9: bad file descriptor
s=2
SCRIPT: line 15: cannot create /: Is a directory
s=2
SCRIPT: line 16: printf: abc: expected numeric value
0
s=1
SCRIPT: line 17: test: x: integer expected
s=2
SCRIPT: line 18: umask: xyz: bad mask
s=1
SCRIPT: line 19: write error: No space left on device
write error s=1
SCRIPT: line 20: bogus: bad option name
s=2
s=0
SCRIPT: line 22: export: 1bad=x: bad variable name
s=2
SCRIPT: line 23: getopts: usage: getopts optstring name [arg ...]
s=2
SCRIPT: line 24: wait: abc: bad process id
s=2
echo is a shell builtin
cd is a shell builtin
if is a shell keyword
SCRIPT: line 25: nonexistent_zz: not found
SCRIPT: line 25: f: not found
f is a shell function
echo is a shell builtin
[status 0]