I know that i can enable/disable globbing with
set +f and
But how can i test whether it is currently enabled?
I could create a file with a unique name and test if a file exists with a pattern that should match it. However, I hope there is a cleaner solution.