]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/globstar.tests
bash-5.1 distribution sources and documentation
[thirdparty/bash.git] / tests / globstar.tests
CommitLineData
8868edaf
CR
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.
5#
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.
10#
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/>.
13#
495aee44
CR
14: ${TMPDIR:=/var/tmp}
15dir=$PWD
16
17shopt -s globstar
18
19export LANG=C LC_ALL=C LC_COLLATE=C
20
21GDIR=$TMPDIR/globstar-$$
22
23mkdir $GDIR || exit 1
24cd $GDIR || exit 1
25
26mkdir lib builtins
27mkdir lib/glob lib/readline lib/sh
28
29touch builtins/history.o builtins/jobs.o builtins/kill.o builtins/let.o builtins/mapfile.o
30touch lib/glob/glob.o lib/glob/smatch.o lib/glob/strmatch.o
31touch lib/readline/bind.o lib/readline/callback.o lib/readline/compat.o lib/readline/complete.o lib/readline/display.o
32
33touch lib/sh/casemod.o lib/sh/clktck.o lib/sh/clock.o lib/sh/eaccess.o
34touch lib/sh/fdprintf.o lib/sh/fmtullong.o lib/sh/fmtulong.o lib/sh/fmtumax.o
35touch lib/sh/fpurge.o lib/sh/getenv.o lib/sh/input_avail.o lib/sh/itos.o
36
37touch alias.o
38touch pcomplib.o print_cmd.o redir.o shell.o sig.o stringlib.o subst.o syntax.o
39touch test.o trap.o unwind_prot.o variables.o version.o xmalloc.o y.tab.o
40
41ls lib/**
42
43ls lib/**/*.o
44
45echo **/*.o
46
47ls **
48
49echo **
50
51cd $dir
52rm -rf $GDIR
53
54${THIS_SH} ./globstar1.sub
ac50fbac 55${THIS_SH} ./globstar2.sub
8868edaf 56${THIS_SH} ./globstar3.sub