Skip to content

Commit

Permalink
/!\ Backward compatibility break
Browse files Browse the repository at this point in the history
Change of redirection symbols to keep close to unix usage : pipe redirects output to current view, right angle bracket redirects output to a new view.
  • Loading branch information
lapause authored and lapoz committed Nov 26, 2012
1 parent c3a9bda commit b2cae07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell_turtlestein.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def cmd_settings(cmd):

def parse_cmd(cmd_str):
return re.match(
r"(?P<pipe>\s*\|\s*)?(?P<shell_cmd>.*?)(?P<redirect_new>\s*>>\s*)?(?P<redirect>\s*>\s*)?$",
r"(?P<pipe>\s*\|\s*)?(?P<shell_cmd>.*?)(?:\s*(?:(?P<redirect_new>>)|(?P<redirect>\|))\s*)?$",
cmd_str
).groupdict()

Expand Down

0 comments on commit b2cae07

Please sign in to comment.