Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 1 | ./errors.tests: line 17: alias: -x: invalid option |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 2 | alias: usage: alias [-p] [name[=value] ... ] |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 3 | ./errors.tests: line 18: unalias: -x: invalid option |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 4 | unalias: usage: unalias [-a] name [name ...] |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 5 | ./errors.tests: line 19: alias: hoowah: not found |
| 6 | ./errors.tests: line 20: unalias: hoowah: not found |
| 7 | ./errors.tests: line 23: `1': not a valid identifier |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 8 | declare -fr func |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 9 | ./errors.tests: line 36: func: readonly function |
| 10 | ./errors.tests: line 39: unset: -x: invalid option |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 11 | unset: usage: unset [-f] [-v] [-n] [name ...] |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 12 | ./errors.tests: line 42: unset: func: cannot unset: readonly function |
| 13 | ./errors.tests: line 45: declare: func: readonly function |
| 14 | ./errors.tests: line 49: unset: XPATH: cannot unset: readonly variable |
| 15 | ./errors.tests: line 52: unset: `/bin/sh': not a valid identifier |
| 16 | ./errors.tests: line 55: unset: cannot simultaneously unset a function and a variable |
| 17 | ./errors.tests: line 58: declare: -z: invalid option |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 18 | declare: usage: declare [-aAfFgilnrtux] [-p] [name[=value] ...] |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 19 | ./errors.tests: line 60: declare: `-z': not a valid identifier |
| 20 | ./errors.tests: line 61: declare: `/bin/sh': not a valid identifier |
| 21 | ./errors.tests: line 65: declare: cannot use `-f' to make functions |
| 22 | ./errors.tests: line 68: exec: -i: invalid option |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 23 | exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection ...] |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 24 | ./errors.tests: line 72: export: XPATH: not a function |
| 25 | ./errors.tests: line 75: break: only meaningful in a `for', `while', or `until' loop |
| 26 | ./errors.tests: line 76: continue: only meaningful in a `for', `while', or `until' loop |
| 27 | ./errors.tests: line 79: shift: label: numeric argument required |
| 28 | ./errors.tests: line 84: shift: too many arguments |
| 29 | ./errors.tests: line 90: let: expression expected |
| 30 | ./errors.tests: line 93: local: can only be used in a function |
| 31 | ./errors.tests: line 96: logout: not login shell: use `exit' |
| 32 | ./errors.tests: line 99: hash: notthere: not found |
| 33 | ./errors.tests: line 102: hash: -v: invalid option |
| 34 | hash: usage: hash [-lr] [-p pathname] [-dt] [name ...] |
| 35 | ./errors.tests: line 106: hash: hashing disabled |
| 36 | ./errors.tests: line 109: export: `AA[4]': not a valid identifier |
| 37 | ./errors.tests: line 110: readonly: `AA[4]': not a valid identifier |
| 38 | ./errors.tests: line 113: [-2]: bad array subscript |
| 39 | ./errors.tests: line 117: AA: readonly variable |
| 40 | ./errors.tests: line 121: AA: readonly variable |
| 41 | ./errors.tests: line 129: shift: 5: shift count out of range |
| 42 | ./errors.tests: line 130: shift: -2: shift count out of range |
| 43 | ./errors.tests: line 133: shopt: no_such_option: invalid shell option name |
| 44 | ./errors.tests: line 134: shopt: no_such_option: invalid shell option name |
| 45 | ./errors.tests: line 137: umask: 09: octal number out of range |
| 46 | ./errors.tests: line 138: umask: `:': invalid symbolic mode character |
| 47 | ./errors.tests: line 139: umask: `:': invalid symbolic mode operator |
| 48 | ./errors.tests: line 142: umask: -i: invalid option |
Jari Aalto | cce855b | 1998-04-17 19:52:44 +0000 | [diff] [blame] | 49 | umask: usage: umask [-p] [-S] [mode] |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 50 | ./errors.tests: line 146: umask: `u': invalid symbolic mode character |
| 51 | ./errors.tests: line 155: VAR: readonly variable |
| 52 | ./errors.tests: line 158: declare: VAR: readonly variable |
| 53 | ./errors.tests: line 159: declare: VAR: readonly variable |
| 54 | ./errors.tests: line 161: declare: unset: not found |
| 55 | ./errors.tests: line 164: VAR: readonly variable |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 56 | ./errors.tests: command substitution: line 168: syntax error near unexpected token `)' |
| 57 | ./errors.tests: command substitution: line 168: ` for z in 1 2 3; do )' |
| 58 | ./errors.tests: command substitution: line 169: syntax error near unexpected token `done' |
| 59 | ./errors.tests: command substitution: line 169: ` for z in 1 2 3; done )' |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 60 | ./errors.tests: line 171: cd: HOME not set |
| 61 | ./errors.tests: line 172: cd: /tmp/xyz.bash: No such file or directory |
| 62 | ./errors.tests: line 174: cd: OLDPWD not set |
| 63 | ./errors.tests: line 175: cd: /bin/sh: Not a directory |
| 64 | ./errors.tests: line 177: cd: /tmp/cd-notthere: No such file or directory |
| 65 | ./errors.tests: line 180: .: filename argument required |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 66 | .: usage: . filename [arguments] |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 67 | ./errors.tests: line 181: source: filename argument required |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 68 | source: usage: source filename [arguments] |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 69 | ./errors.tests: line 184: .: -i: invalid option |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 70 | .: usage: . filename [arguments] |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 71 | ./errors.tests: line 187: set: -q: invalid option |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 72 | set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...] |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 73 | ./errors.tests: line 190: enable: sh: not a shell builtin |
| 74 | ./errors.tests: line 190: enable: bash: not a shell builtin |
| 75 | ./errors.tests: line 193: shopt: cannot set and unset shell options simultaneously |
| 76 | ./errors.tests: line 196: read: var: invalid timeout specification |
| 77 | ./errors.tests: line 199: read: `/bin/sh': not a valid identifier |
| 78 | ./errors.tests: line 202: VAR: readonly variable |
| 79 | ./errors.tests: line 205: readonly: -x: invalid option |
Chet Ramey | 495aee4 | 2011-11-22 19:11:26 -0500 | [diff] [blame] | 80 | readonly: usage: readonly [-aAf] [name[=value] ...] or readonly -p |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 81 | ./errors.tests: line 208: eval: -i: invalid option |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 82 | eval: usage: eval [arg ...] |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 83 | ./errors.tests: line 209: command: -i: invalid option |
Jari Aalto | d166f04 | 1997-06-05 14:59:13 +0000 | [diff] [blame] | 84 | command: usage: command [-pVv] command [arg ...] |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame] | 85 | ./errors.tests: line 212: /bin/sh + 0: syntax error: operand expected (error token is "/bin/sh + 0") |
| 86 | ./errors.tests: line 213: /bin/sh + 0: syntax error: operand expected (error token is "/bin/sh + 0") |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 87 | ./errors.tests: line 216: trap: NOSIG: invalid signal specification |
| 88 | ./errors.tests: line 219: trap: -s: invalid option |
Jari Aalto | 3185942 | 2009-01-12 13:36:28 +0000 | [diff] [blame] | 89 | trap: usage: trap [-lp] [[arg] signal_spec ...] |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 90 | ./errors.tests: line 225: return: can only `return' from a function or sourced script |
| 91 | ./errors.tests: line 229: break: 0: loop count out of range |
| 92 | ./errors.tests: line 233: continue: 0: loop count out of range |
| 93 | ./errors.tests: line 238: builtin: bash: not a shell builtin |
| 94 | ./errors.tests: line 242: bg: no job control |
| 95 | ./errors.tests: line 243: fg: no job control |
| 96 | ./errors.tests: line 246: kill: -s: option requires an argument |
| 97 | ./errors.tests: line 248: kill: S: invalid signal specification |
| 98 | ./errors.tests: line 250: kill: `': not a pid or valid job spec |
Jari Aalto | 95732b4 | 2005-12-07 14:08:12 +0000 | [diff] [blame] | 99 | kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 100 | ./errors.tests: line 255: set: trackall: invalid option name |
Chet Ramey | ac50fba | 2014-02-26 09:36:43 -0500 | [diff] [blame] | 101 | ./errors.tests: line 259: xx: readonly variable |
| 102 | 1 |
| 103 | ./errors1.sub: line 1: .: -i: invalid option |
| 104 | .: usage: . filename [arguments] |
| 105 | ./errors1.sub: line 9: shift: -4: shift count out of range |
| 106 | ./errors1.sub: line 14: break: -1: loop count out of range |
| 107 | after f |
| 108 | ./errors2.sub: line 3: ${$NO_SUCH_VAR}: bad substitution |
| 109 | 1 |
| 110 | ./errors3.sub: line 5: no_such_file: No such file or directory |
| 111 | TEST |
| 112 | ./errors3.sub: line 7: no_such_file: No such file or directory |
| 113 | ./errors.tests: line 271: `!!': not a valid identifier |