[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
compgen respecting dotglob changes
From: |
Grisha Levit |
Subject: |
compgen respecting dotglob changes |
Date: |
Sun, 19 Mar 2023 21:02:15 -0400 |
compgen's glob matching does not respect dotglob being turned on or
off unless some other globbing takes place between the setting being
changed and compgen being called:
$ cd "$(mktemp -d)"
$ > .x
$ bash -c 'shopt -s dotglob; compgen -G \*'
$ bash -c 'shopt -s dotglob; : *; compgen -G \*'
.x
- compgen respecting dotglob changes,
Grisha Levit <=