1 # This program is free software: you can redistribute it and/or modify
2 # it under the terms of the GNU General Public License as published by
3 # the Free Software Foundation, either version 3 of the License, or
4 # (at your option) any later version.
6 # This program is distributed in the hope that it will be useful,
7 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 # GNU General Public License for more details.
11 # You should have received a copy of the GNU General Public License
12 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 # this should echo nothing
21 # this should be a usage error
24 # these should behave identically
30 unset -f func 2>/dev/null
31 func() { echo this is func; }
41 # the following two should produce identical output
52 # the following two lines should produce the same output
53 # post-3.0 patch makes command -v silent, as posix specifies
54 # first test with alias expansion off (should all fail or produce no output)
61 # then test with alias expansion on
62 shopt -s expand_aliases
70 shopt -u expand_aliases
88 hash -p /tmp/$SHBASE $SHBASE
94 # make sure the hash table looks right
97 # bug in versions of bush up to and including bush-3.2