039b2bf24b4f98584ea55010b74a5974f0aa2bab
[platform/upstream/bash.git] / tests / errors.right
1 ./errors.tests: alias: illegal option: -x
2 alias: usage: alias [-p] [name[=value] ... ]
3 ./errors.tests: unalias: illegal option: -x
4 unalias: usage: unalias [-a] [name ...]
5 ./errors.tests: alias: `hoowah' not found
6 ./errors.tests: unalias: `hoowah': not an alias
7 ./errors.tests: `1': not a valid identifier
8 declare -fr func
9 ./errors.tests: func: readonly function
10 ./errors.tests: unset: illegal option: -x
11 unset: usage: unset [-f] [-v] [name ...]
12 ./errors.tests: unset: func: cannot unset: readonly function
13 ./errors.tests: declare: func: readonly function
14 ./errors.tests: unset: XPATH: cannot unset: readonly variable
15 ./errors.tests: unset: `/bin/sh': not a valid identifier
16 ./errors.tests: unset: cannot simultaneously unset a function and a variable
17 ./errors.tests: declare: unknown option: `-z'
18 declare: usage: declare [-afFrxi] [-p] name[=value] ...
19 ./errors.tests: declare: `-z': not a valid identifier
20 ./errors.tests: declare: `/bin/sh': not a valid identifier
21 ./errors.tests: declare: cannot use `-f' to make functions
22 ./errors.tests: exec: illegal option: -i
23 exec: usage: exec [-cl] [-a name] file [redirection ...]
24 ./errors.tests: export: XPATH: not a function
25 ./errors.tests: break: only meaningful in a `for', `while', or `until' loop
26 ./errors.tests: continue: only meaningful in a `for', `while', or `until' loop
27 ./errors.tests: shift: bad non-numeric arg `label'
28 ./errors.tests: shift: too many arguments
29 ./errors.tests: let: expression expected
30 ./errors.tests: local: can only be used in a function
31 ./errors.tests: logout: not login shell: use `exit'
32 ./errors.tests: hash: notthere: not found
33 ./errors.tests: hash: illegal option: -v
34 hash: usage: hash [-r] [-p pathname] [name ...]
35 ./errors.tests: hash: hashing disabled
36 ./errors.tests: export: `AA[4]': not a valid identifier
37 ./errors.tests: readonly: `AA[4]': not a valid identifier
38 ./errors.tests: [-2]: bad array subscript
39 ./errors.tests: AA: readonly variable
40 ./errors.tests: AA: readonly variable
41 ./errors.tests: readonly: ZZZ: cannot assign to array variables in this way
42 ./errors.tests: shift: shift count must be <= $#
43 ./errors.tests: shift: shift count must be >= 0
44 ./errors.tests: shopt: no_such_option: unknown shell option name
45 ./errors.tests: shopt: no_such_option: unknown shell option name
46 ./errors.tests: umask: `09' is not an octal number from 000 to 777
47 ./errors.tests: umask: bad character in symbolic mode: :
48 ./errors.tests: umask: bad symbolic mode operator: :
49 ./errors.tests: umask: illegal option: -i
50 umask: usage: umask [-p] [-S] [mode]
51 ./errors.tests: umask: bad character in symbolic mode: u
52 ./errors.tests: VAR: readonly variable
53 ./errors.tests: declare: VAR: readonly variable
54 ./errors.tests: declare: VAR: readonly variable
55 ./errors.tests: declare: unset: not found
56 ./errors.tests: VAR: readonly variable
57 ./errors.tests: command substitution: line 2: syntax error: unexpected end of file
58 ./errors.tests: command substitution: line 1: syntax error near unexpected token `done'
59 ./errors.tests: command substitution: line 1: ` for z in 1 2 3; done '
60 ./errors.tests: cd: HOME not set
61 ./errors.tests: cd: /tmp/xyz.bash: No such file or directory
62 ./errors.tests: cd: OLDPWD not set
63 ./errors.tests: cd: /bin/sh: Not a directory
64 ./errors.tests: cd: /tmp/cd-notthere: No such file or directory
65 ./errors.tests: .: filename argument required
66 .: usage: . filename
67 ./errors.tests: source: filename argument required
68 source: usage: source filename
69 ./errors.tests: .: illegal option: -i
70 .: usage: . filename
71 ./errors.tests: set: unknown option: q
72 ./errors.tests: enable: sh: not a shell builtin
73 ./errors.tests: enable: bash: not a shell builtin
74 ./errors.tests: shopt: cannot set and unset shell options simultaneously
75 ./errors.tests: read: var: invalid timeout specification
76 ./errors.tests: read: `/bin/sh': not a valid identifier
77 ./errors.tests: VAR: readonly variable
78 ./errors.tests: readonly: illegal option: -x
79 readonly: usage: readonly [-anf] [name ...] or readonly -p
80 ./errors.tests: eval: illegal option: -i
81 eval: usage: eval [arg ...]
82 ./errors.tests: command: illegal option: -i
83 command: usage: command [-pVv] command [arg ...]
84 ./errors.tests: /bin/sh + 0: syntax error: operand expected (error token is "/bin/sh + 0")
85 ./errors.tests: /bin/sh + 0: syntax error: operand expected (error token is "/bin/sh + 0")
86 ./errors.tests: trap: NOSIG: not a signal specification
87 ./errors.tests: trap: illegal option: -s
88 trap: usage: trap [arg] [signal_spec ...] or trap -l
89 ./errors.tests: trap: ERR: not a signal specification
90 ./errors.tests: return: can only `return' from a function or sourced script
91 ./errors.tests: break: loop count must be > 0
92 ./errors.tests: continue: loop count must be > 0
93 ./errors.tests: builtin: bash: not a shell builtin
94 ./errors.tests: bg: no job control
95 ./errors.tests: fg: no job control
96 ./errors.tests: kill: -s requires an argument
97 ./errors.tests: kill: bad signal spec `S'
98 ./errors.tests: kill: `': not a pid or valid job spec
99 kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill -l [sigspec]
100 ./errors.tests: set: trackall: unknown option name
101 ./errors.tests: `!!': not a valid identifier