Merge pull request #872 from dsaucez/patch-2

change isShellBuiltin
This commit is contained in:
lantz
2019-04-25 20:16:31 -07:00
committed by GitHub
+1 -1
View File
@@ -181,7 +181,7 @@ def which(cmd, **kwargs ):
def isShellBuiltin( cmd ):
"Return True if cmd is a bash builtin."
if isShellBuiltin.builtIns is None:
isShellBuiltin.builtIns = quietRun( 'bash -c enable' )
isShellBuiltin.builtIns = set(quietRun( 'bash -c enable' ).split())
space = cmd.find( ' ' )
if space > 0:
cmd = cmd[ :space]