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