Re: compgen respecting dotglob changes

2023-03-21 Thread Chet Ramey
On 3/19/23 9:02 PM, Grisha Levit wrote: 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: Thanks for the report. -- ``The lyf so short, the craft so long to lerne.'' - Chauc

compgen respecting dotglob changes

2023-03-19 Thread Grisha Levit
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