##// END OF EJS Templates
Fixed logical flaw (harmless so far) in handle_shell_escape
vivainio -
r108:f377dcb3
parent child
Show More
@@ -6,7 +6,7 Requires Python 2.1 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 1013 2006-01-13 08:33:32Z fperez $
9 $Id: iplib.py 1015 2006-01-13 22:47:06Z vivainio $
10 """
10 """
11
11
12 #*****************************************************************************
12 #*****************************************************************************
@@ -1867,6 +1867,7 want to merge them back into the new files.""" % locals()
1867 if iFun in self.alias_table:
1867 if iFun in self.alias_table:
1868 return self.handle_alias(line,continue_prompt,
1868 return self.handle_alias(line,continue_prompt,
1869 pre,iFun,theRest)
1869 pre,iFun,theRest)
1870
1870 else:
1871 else:
1871 return self.handle_normal(line,continue_prompt)
1872 return self.handle_normal(line,continue_prompt)
1872
1873
@@ -1938,10 +1939,11 want to merge them back into the new files.""" % locals()
1938 # correctly
1939 # correctly
1939 theRest = '%s %s' % (iFun[2:],theRest)
1940 theRest = '%s %s' % (iFun[2:],theRest)
1940 iFun = 'sx'
1941 iFun = 'sx'
1941 return self.handle_magic('%ssx %s' % (self.ESC_MAGIC,line[2:]),
1942 return self.handle_magic('%ssx %s' % (self.ESC_MAGIC,
1943 line.lstrip()[2:]),
1942 continue_prompt,pre,iFun,theRest)
1944 continue_prompt,pre,iFun,theRest)
1943 else:
1945 else:
1944 cmd=line.lstrip()[1:]
1946 cmd=line.lstrip().lstrip('!')
1945 line_out = '%sipsystem(%s)' % (pre,make_quoted_expr(cmd))
1947 line_out = '%sipsystem(%s)' % (pre,make_quoted_expr(cmd))
1946 # update cache/log and return
1948 # update cache/log and return
1947 self.log(line_out,continue_prompt)
1949 self.log(line_out,continue_prompt)
@@ -4,8 +4,14
4 so far only set_term_title is implemented (change terminal
4 so far only set_term_title is implemented (change terminal
5 label in windowing systems). %cd now changes the title to
5 label in windowing systems). %cd now changes the title to
6 current dir.
6 current dir.
7
7
8 * Added myself to "authors" list, had to create new files.
8 * IPython/Release.py: Added myself to "authors" list,
9 had to create new files.
10
11 * IPython/iplib.py (handle_shell_escape): fixed logical flaw in
12 shell escape; not a known bug but had potential to be one in the
13 future.
14
9
15
10 2006-01-13 Fernando Perez <Fernando.Perez@colorado.edu>
16 2006-01-13 Fernando Perez <Fernando.Perez@colorado.edu>
11
17
General Comments 0
You need to be logged in to leave comments. Login now