mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Preserve newline during bashisms transformation.
This commit is contained in:
parent
550d70d227
commit
46cc6f1541
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue