Imported from ../bash-4.0-rc1.tar.gz.
[platform/upstream/bash.git] / tests / builtins.tests
index 9073ed5..6d20ae9 100644 (file)
@@ -4,18 +4,6 @@ set +o posix
 
 ulimit -c 0 2>/dev/null
 
-# alias/unalias tests
-
-unalias -a
-# this should return success, according to POSIX.2
-alias
-echo alias: $?
-alias foo=bar
-unalias foo
-# this had better return success, according to POSIX.2
-alias
-echo alias: $?
-
 # check that break breaks loops
 for i in a b c; do echo $i; break; echo bad-$i; done
 echo end-1
@@ -183,11 +171,14 @@ echo "$@"
 echo "$@"
 
 # test out cd and $CDPATH
-${THIS_SH} ./builtins.sub1
+${THIS_SH} ./builtins1.sub
 
 # test behavior of `.' when given a non-existant file argument
 ${THIS_SH} ./source5.sub
 
+# test bugs in sourcing non-regular files, fixed post-bash-3.2
+${THIS_SH} ./source6.sub
+
 # in posix mode, assignment statements preceding special builtins are
 # reflected in the shell environment.  `.' and `eval' need special-case
 # code.
@@ -253,6 +244,9 @@ kill -l 4096
 # kill -l NAME should return the signal number
 kill -l ${sigone/SIG/}
 
+# test behavior of shopt xpg_echo
+${THIS_SH} ./builtins2.sub
+
 # this must be last -- it is a fatal error
 exit status