summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcmd2.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2.py b/cmd2.py
index 2c23c57a..8fd42d84 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1340,13 +1340,13 @@ class Cmd(cmd.Cmd):
raw_tokens.append(cur_initial_token)
continue
- # Keep track of the current token we are building
- cur_raw_token = ''
-
# Iterate over each character in this token
cur_index = 0
cur_char = cur_initial_token[cur_index]
+ # Keep track of the token we are building
+ cur_raw_token = ''
+
while True:
if cur_char not in REDIRECTION_CHARS: