fosslinux / fosslinux/live-bootstrap
chroot/bwrap fail to build automake-1.6.3 in WSL2 due to bash-2.05b globbing failure
- Dominant language
- Shell
- Stars
- 750
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
Both chroot and bwrap builds fail in WSL2, because `rm -- configure Makefile.in */Makefile.in */*/Makefile.in aclocal.m4 automake.info*` fails to expand properly.
A simple testcase that shows this problem is as follows:
```
$ mkdir -p a/b
$ touch a/b/c
$ cd a
$ ./path/to/bad/bash -c 'echo */c'
*/c
$ bash -c 'echo */c' # system bash
b/c
```
bash-2.05b consistently behaves like this outside a chroot environment (even if it's run under "env -i"), but inside chroot/bwrap, it works fine - except on WSL2. IMO a proper fix would be one that makes it work outside a chroot environment as well.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.