diff --git a/sh.py b/sh.py index 28654e5a..4d9b2156 100644 --- a/sh.py +++ b/sh.py @@ -457,12 +457,12 @@ def __init__(self, path, results): list.__init__(self, results) -def glob(path, recursive=False): - expanded = GlobResults(path, _old_glob(path, recursive=recursive)) +def glob(path, *args, **kwargs): + expanded = GlobResults(path, _old_glob(path, *args, **kwargs)) return expanded -glob_module.glob = glob +glob_module.glob = glob # type: ignore def canonicalize(path):