Append $argv only to the last command in an alias.

This commit is contained in:
Siteshwar Vashisht
2012-03-20 22:07:34 +05:30
parent e55bc92d1f
commit 89e1cad470

View File

@@ -149,8 +149,8 @@ def add_alias(alias_name, alias_value):
config_file.write("\n\tset " + var_regex_matched.group(1).strip() + " " + var_regex_matched.group(2).strip() )
else:
if len(line.strip()) > 0:
config_file.write( "\n\t" + line.strip() + " $argv" )
config_file.write("\nend;\n")
config_file.write( "\n\t" + line.strip() )
config_file.write(" $argv\nend;\n")
def parse_control_sequence():
ch = next_prompt_char()