logical whitespace

This commit is contained in:
Anthony Scopatz 2019-08-27 14:01:28 -04:00
parent 4975977b2b
commit e35d61f2ea
2 changed files with 25 additions and 1 deletions

24
news/space-logical.rst Normal file
View file

@ -0,0 +1,24 @@
**Added:**
* <news item>
**Changed:**
* Changed the ``ExecAlias`` to only be applied when the logical operators
(``and``, ``or``) are surrounded by whitespace.
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>

View file

@ -44,7 +44,7 @@ import xonsh.xoreutils.which as xxw
@lazyobject
def SUB_EXEC_ALIAS_RE():
return re.compile(r"@\(|\$\(|!\(|\$\[|!\[|\&\&|\|\||and|or")
return re.compile(r"@\(|\$\(|!\(|\$\[|!\[|\&\&|\|\||\s+and\s+|\s+or\s+")
class Aliases(cabc.MutableMapping):