dylanaraps / pure-sh-bible

📖 A collection of pure POSIX sh alternatives to external processes.
MIT License
6.45k stars 281 forks source link

Don't clobber NOGLOB in functions #7

Open uberbaud opened 4 years ago

uberbaud commented 4 years ago

Currently, functions that need noglob set, always unset it before leaving the function, which can be problematic if it was set outside the function. This would fix that so that the noglob state is maintained in the caller.