From 01f77ad144f2acf8d36b59e37cf0ef47fa2885d3 2008-03-19 14:34:21 From: Ville M. Vainio Date: 2008-03-19 14:34:21 Subject: [PATCH] %rehashx now works correctly with no_alias, even if the command has upper case characters --- diff --git a/IPython/Magic.py b/IPython/Magic.py index ca19315..c6510e6 100644 --- a/IPython/Magic.py +++ b/IPython/Magic.py @@ -2615,7 +2615,7 @@ Defaulting color scheme to 'NoColor'""" os.chdir(pdir) for ff in os.listdir(pdir): base, ext = os.path.splitext(ff) - if isexec(ff) and base not in self.shell.no_alias: + if isexec(ff) and base.lower() not in self.shell.no_alias: if ext.lower() == '.exe': ff = base alias_table[base.lower()] = (0,ff)