##// END OF EJS Templates
sh profile: fix dot removal (only strip .exe extension, as in rehashx)
Ville M. Vainio -
Show More
@@ -98,7 +98,10 b' def main():'
98 for cmd in syscmds:
98 for cmd in syscmds:
99 # print "sys",cmd #dbg
99 # print "sys",cmd #dbg
100 noext, ext = os.path.splitext(cmd)
100 noext, ext = os.path.splitext(cmd)
101 key = mapper(noext)
101 if ext.lower() == '.exe':
102 cmd = noext
103
104 key = mapper(cmd)
102 if key not in ip.IP.alias_table:
105 if key not in ip.IP.alias_table:
103 ip.defalias(key.replace('.',''), cmd)
106 ip.defalias(key.replace('.',''), cmd)
104
107
General Comments 0
You need to be logged in to leave comments. Login now