##// END OF EJS Templates
Quote aliases w/ spaces in target name...
vivainio -
Show More
@@ -35,7 +35,7 b' def rehashdir_f(self,arg):'
35
35
36 Usage:
36 Usage:
37
37
38 %rehashdir c:/bin c:/tools
38 %rehashdir c:/bin;c:/tools
39 - Add all executables under c:/bin and c:/tools to alias table, in
39 - Add all executables under c:/bin and c:/tools to alias table, in
40 order to make them directly executable from any directory.
40 order to make them directly executable from any directory.
41
41
@@ -54,7 +54,7 b' def rehashdir_f(self,arg):'
54
54
55 if not arg:
55 if not arg:
56 arg = '.'
56 arg = '.'
57 path = map(os.path.abspath,arg.split())
57 path = map(os.path.abspath,arg.split(';'))
58 alias_table = self.shell.alias_table
58 alias_table = self.shell.alias_table
59
59
60 if os.name == 'posix':
60 if os.name == 'posix':
@@ -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 1202 2006-03-12 06:37:52Z fperez $
9 $Id: iplib.py 1227 2006-03-28 13:20:14Z vivainio $
10 """
10 """
11
11
12 #*****************************************************************************
12 #*****************************************************************************
@@ -1532,6 +1532,9 b' want to merge them back into the new files.""" % locals()'
1532
1532
1533 """
1533 """
1534 nargs,cmd = self.alias_table[alias]
1534 nargs,cmd = self.alias_table[alias]
1535 if ' ' in cmd:
1536 cmd = '"%s"' % cmd
1537
1535 # Expand the %l special to be the user's input line
1538 # Expand the %l special to be the user's input line
1536 if cmd.find('%l') >= 0:
1539 if cmd.find('%l') >= 0:
1537 cmd = cmd.replace('%l',rest)
1540 cmd = cmd.replace('%l',rest)
@@ -1,3 +1,11 b''
1 2006-03-28 Ville Vainio <vivainio@gmail.com>
2
3 * iplib.py: Quote aliases with spaces in the name.
4 "c:\program files\blah\bin" is now legal alias target.
5
6 * ext_rehashdir.py: Space no longer allowed as arg
7 separator, since space is legal in path names.
8
1 2006-03-16 Ville Vainio <vivainio@gmail.com>
9 2006-03-16 Ville Vainio <vivainio@gmail.com>
2
10
3 * upgrade_dir.py: Take path.py from Extensions, correcting
11 * upgrade_dir.py: Take path.py from Extensions, correcting
General Comments 0
You need to be logged in to leave comments. Login now