]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/builtins.tests
bash-5.1 distribution sources and documentation
[thirdparty/bash.git] / tests / builtins.tests
index ac74fe6fa3f444e9519190052ebe4af4b2c989d5..00ebc0fddd40b6152aceac42b01a8ea4f3455a99 100644 (file)
@@ -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/>.
+#
 # tests for miscellaneous builtins not tested elsewhere
 set +p
 set +o posix
@@ -124,7 +137,7 @@ hash -r
 hash
 
 # this had better succeed, since command -p guarantees we will find the
-# standard utilties
+# standard utilities
 command -p hash rm
 
 # check out source/.
@@ -173,7 +186,7 @@ echo "$@"
 # test out cd and $CDPATH
 ${THIS_SH} ./builtins1.sub
 
-# test behavior of `.' when given a non-existant file argument
+# test behavior of `.' when given a non-existent file argument
 ${THIS_SH} ./source5.sub
 
 # test bugs in sourcing non-regular files, fixed post-bash-3.2
@@ -262,6 +275,9 @@ ${THIS_SH} ./builtins5.sub
 # test behavior of unset builtin with -f and -v options
 ${THIS_SH} ./builtins6.sub
 
+# test behavior of command builtin after changing it to a pseudo-keyword
+${THIS_SH} ./builtins7.sub
+
 # this must be last -- it is a fatal error
 exit status