Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
vivainio committed Mar 8, 2008
2 parents ec42e73 + 53f7948 commit 80c5442
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .checkeol
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.py
4 changes: 2 additions & 2 deletions IPython/Extensions/jobctrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def magic_kill(self,line):
magic_tasks(self,line)

if sys.platform == 'win32':
shell_internal_commands = 'break chcp cls copy ctty date del erase dir md mkdir path prompt rd rmdir time type ver vol'.split()
shell_internal_commands = 'break chcp cls copy ctty date del erase dir md mkdir path prompt rd rmdir time type ver vol'.split()
else:
# todo linux commands
shell_internal_commands = []
Expand All @@ -199,7 +199,7 @@ def jobctrl_shellcmd(ip,cmd):
""" os.system replacement that stores process info to db['tasks/t1234'] """
cmd = cmd.strip()
cmdname = cmd.split(None,1)[0]
if cmdname in shell_internal_commands:
if cmdname in shell_internal_commands or '|' in cmd or '>' in cmd or '<' in cmd:
use_shell = True
else:
use_shell = False
Expand Down

0 comments on commit 80c5442

Please sign in to comment.