Imported from ../bash-2.05a.tar.gz.
[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] [-t] [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: shift: shift count must be <= $#
42 ./errors.tests: shift: shift count must be >= 0
43 ./errors.tests: shopt: no_such_option: unknown shell option name
44 ./errors.tests: shopt: no_such_option: unknown shell option name
45 ./errors.tests: umask: `09' is not an octal number from 000 to 777
46 ./errors.tests: umask: bad character in symbolic mode: :
47 ./errors.tests: umask: bad symbolic mode operator: :
48 ./errors.tests: umask: illegal option: -i
49 umask: usage: umask [-p] [-S] [mode]
50 ./errors.tests: umask: bad character in symbolic mode: u
51 ./errors.tests: VAR: readonly variable
52 ./errors.tests: declare: VAR: readonly variable
53 ./errors.tests: declare: VAR: readonly variable
54 ./errors.tests: declare: unset: not found
55 ./errors.tests: VAR: readonly variable
56 ./errors.tests: command substitution: line 2: syntax error: unexpected end of file
57 ./errors.tests: command substitution: line 1: syntax error near unexpected token `done'
58 ./errors.tests: command substitution: line 1: ` for z in 1 2 3; done '
59 ./errors.tests: cd: HOME not set
60 ./errors.tests: cd: /tmp/xyz.bash: No such file or directory
61 ./errors.tests: cd: OLDPWD not set
62 ./errors.tests: cd: /bin/sh: Not a directory
63 ./errors.tests: cd: /tmp/cd-notthere: No such file or directory
64 ./errors.tests: .: filename argument required
65 .: usage: . filename
66 ./errors.tests: source: filename argument required
67 source: usage: source filename
68 ./errors.tests: .: illegal option: -i
69 .: usage: . filename
70 ./errors.tests: set: unknown option: q
71 ./errors.tests: enable: sh: not a shell builtin
72 ./errors.tests: enable: bash: not a shell builtin
73 ./errors.tests: shopt: cannot set and unset shell options simultaneously
74 ./errors.tests: read: var: invalid timeout specification
75 ./errors.tests: read: `/bin/sh': not a valid identifier
76 ./errors.tests: VAR: readonly variable
77 ./errors.tests: readonly: illegal option: -x
78 readonly: usage: readonly [-anf] [name ...] or readonly -p
79 ./errors.tests: eval: illegal option: -i
80 eval: usage: eval [arg ...]
81 ./errors.tests: command: illegal option: -i
82 command: usage: command [-pVv] command [arg ...]
83 ./errors.tests: /bin/sh + 0: syntax error: operand expected (error token is "/bin/sh + 0")
84 ./errors.tests: /bin/sh + 0: syntax error: operand expected (error token is "/bin/sh + 0")
85 ./errors.tests: trap: NOSIG: not a signal specification
86 ./errors.tests: trap: illegal option: -s
87 trap: usage: trap [arg] [signal_spec ...] or trap -l
88 ./errors.tests: return: can only `return' from a function or sourced script
89 ./errors.tests: break: loop count must be > 0
90 ./errors.tests: continue: loop count must be > 0
91 ./errors.tests: builtin: bash: not a shell builtin
92 ./errors.tests: bg: no job control
93 ./errors.tests: fg: no job control
94 ./errors.tests: kill: -s requires an argument
95 ./errors.tests: kill: bad signal spec `S'
96 ./errors.tests: kill: `': not a pid or valid job spec
97 kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill -l [sigspec]
98 ./errors.tests: set: trackall: unknown option name
99 ./errors.tests: `!!': not a valid identifier