##// END OF EJS Templates
fix !command /?. Closes \#52
vivainio -
Show More
@@ -6,7 +6,7 b' Requires Python 2.3 or newer.'
6
6
7 This file contains all the classes and helper functions specific to IPython.
7 This file contains all the classes and helper functions specific to IPython.
8
8
9 $Id: iplib.py 2172 2007-03-23 14:04:07Z vivainio $
9 $Id: iplib.py 2173 2007-03-23 14:26:16Z vivainio $
10 """
10 """
11
11
12 #*****************************************************************************
12 #*****************************************************************************
@@ -2120,6 +2120,15 b' want to merge them back into the new files.""" % locals()'
2120 return self.handle_normal(rewritten)
2120 return self.handle_normal(rewritten)
2121
2121
2122 #print 'pre <%s> iFun <%s> rest <%s>' % (pre,iFun,theRest) # dbg
2122 #print 'pre <%s> iFun <%s> rest <%s>' % (pre,iFun,theRest) # dbg
2123
2124 # Next, check if we can automatically execute this thing
2125
2126 # Allow ! in multi-line statements if multi_line_specials is on:
2127 if continue_prompt and self.rc.multi_line_specials and \
2128 iFun.startswith(self.ESC_SHELL):
2129 return self.handle_shell_escape(line,continue_prompt,
2130 pre=pre,iFun=iFun,
2131 theRest=theRest)
2123
2132
2124 # First check for explicit escapes in the last/first character
2133 # First check for explicit escapes in the last/first character
2125 handler = None
2134 handler = None
@@ -2135,15 +2144,6 b' want to merge them back into the new files.""" % locals()'
2135 if line.endswith('# PYTHON-MODE'):
2144 if line.endswith('# PYTHON-MODE'):
2136 return self.handle_emacs(line,continue_prompt)
2145 return self.handle_emacs(line,continue_prompt)
2137
2146
2138 # Next, check if we can automatically execute this thing
2139
2140 # Allow ! in multi-line statements if multi_line_specials is on:
2141 if continue_prompt and self.rc.multi_line_specials and \
2142 iFun.startswith(self.ESC_SHELL):
2143 return self.handle_shell_escape(line,continue_prompt,
2144 pre=pre,iFun=iFun,
2145 theRest=theRest)
2146
2147 # Let's try to find if the input line is a magic fn
2147 # Let's try to find if the input line is a magic fn
2148 oinfo = None
2148 oinfo = None
2149 if hasattr(self,'magic_'+iFun):
2149 if hasattr(self,'magic_'+iFun):
@@ -6,6 +6,9 b''
6
6
7 * Extensions/ipy_gnuglobal.py added, provides %global magic
7 * Extensions/ipy_gnuglobal.py added, provides %global magic
8 for users of http://www.gnu.org/software/global
8 for users of http://www.gnu.org/software/global
9
10 * iplib.py: '!command /?' now doesn't invoke IPython's help system.
11 Closes #52. Patch by Stefan van der Walt.
9
12
10 2007-03-23 Fernando Perez <Fernando.Perez@colorado.edu>
13 2007-03-23 Fernando Perez <Fernando.Perez@colorado.edu>
11
14
General Comments 0
You need to be logged in to leave comments. Login now