diff options
Diffstat (limited to 'tests/errors.tests')
-rw-r--r-- | tests/errors.tests | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/errors.tests b/tests/errors.tests index e1554cd1..531b625b 100644 --- a/tests/errors.tests +++ b/tests/errors.tests @@ -1,3 +1,16 @@ +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# # These should all be safe LC_ALL=C LC_CTYPE=C @@ -95,7 +108,7 @@ local # logout of a non-login shell is an error logout -# try to hash a non-existant command +# try to hash a non-existent command hash notthere # bad option to hash, although it may mean `verbose' at some future point @@ -275,6 +288,9 @@ ${THIS_SH} -o posix ./errors7.sub ${THIS_SH} ./errors8.sub +${THIS_SH} -c 'return ; echo after return' bash +${THIS_SH} -o posix -c 'return ; echo after return' bash + # this must be last! # in posix mode, a function name must be a valid identifier # this can't go in posix2.tests, since it causes the shell to exit |