Why does compgen behave differently when called which bash -ilc
If I call compgen
on bash directly with an environment variable pointing to a directory, it completes paths inside that directory. This can include environment variables if they are no resolved before calling compgen
.