Preserve newline during bashisms transformation.

This commit is contained in:
Eddie Peters 2019-05-10 07:18:40 -04:00
parent 550d70d227
commit 46cc6f1541

View file

@ -40,7 +40,7 @@ def bash_preproc(cmd, **kw):
print("xonsh: no previous commands match '!{}'".format(arg))
return ""
return re.sub(r"!([!$^*]|[\w]+)", replace_bang, cmd.strip())
return re.sub(r"!([!$^*]|[\w]+)", replace_bang, cmd)
@events.on_ptk_create