mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-06 10:12:38 +02:00
Initial devel branch import from bash-3.0-alpha
This commit is contained in:
+15
-2
@@ -19,7 +19,6 @@ func() { echo this is func; }
|
||||
|
||||
type -t func
|
||||
type -t while
|
||||
type -t m
|
||||
type -t builtin
|
||||
type -t /bin/sh
|
||||
type -t ${THIS_SH}
|
||||
@@ -29,7 +28,6 @@ type func
|
||||
# the following two should produce identical output
|
||||
type while
|
||||
type -a while
|
||||
type m
|
||||
type builtin
|
||||
type /bin/sh
|
||||
|
||||
@@ -37,11 +35,26 @@ command -v func
|
||||
command -V func
|
||||
command -v while
|
||||
command -V while
|
||||
|
||||
# the following three lines should produce the same output
|
||||
# first test with alias expansion off (should all fail or produce no output)
|
||||
type -t m
|
||||
type m
|
||||
command -v m
|
||||
alias -p
|
||||
alias m
|
||||
|
||||
# then test with alias expansion on
|
||||
shopt -s expand_aliases
|
||||
type m
|
||||
type -t m
|
||||
command -v m
|
||||
alias -p
|
||||
alias m
|
||||
|
||||
command -V m
|
||||
shopt -u expand_aliases
|
||||
|
||||
command -v builtin
|
||||
command -V builtin
|
||||
command -v /bin/sh
|
||||
|
||||
Reference in New Issue
Block a user