mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-12 13:10:45 +02:00
small changes to some error messages; greatly expanded builtins tests
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
# these are ok
|
||||
|
||||
function a=2
|
||||
{
|
||||
printf "FUNCNAME: %s\n" $FUNCNAME
|
||||
@@ -22,6 +24,12 @@ function 11111
|
||||
printf "FUNCNAME: %s\n" $FUNCNAME
|
||||
}
|
||||
|
||||
# but this is still not
|
||||
function sys$read
|
||||
{
|
||||
printf "FUNCNAME: %s\n" $FUNCNAME
|
||||
}
|
||||
|
||||
declare -f
|
||||
set -o posix
|
||||
declare -f
|
||||
@@ -36,3 +44,11 @@ break()
|
||||
|
||||
type break
|
||||
\break
|
||||
unset -f break
|
||||
|
||||
# but in posix mode, declaring such a function is an error
|
||||
set -o posix
|
||||
break()
|
||||
{
|
||||
echo FUNCNAME: $FUNCNAME
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user