mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 09:20:57 +01:00

This fixes #3270 and logical operators within aliases now resolve correctly. I've added in `&&`, `||`, `and`, and `or` ``` (base) ~/githu/xonsh/xonsh logical_op_aliases $ aliases['echocat'] = 'echo "hi" and echo "there"' (base) ~/githu/xonsh/xonsh logical_op_aliases $ echocat hi there (base) ~/githu/xonsh/xonsh logical_op_aliases $ aliases['echocat'] = 'echo "hi" or echo "there"' (base) ~/githu/xonsh/xonsh logical_op_aliases $ echocat hi (base) ~/githu/xonsh/xonsh logical_op_aliases $ aliases['echocat'] = 'echo "hi" && echo "there"' (base) ~/githu/xonsh/xonsh logical_op_aliases $ echocat hi there (base) ~/githu/xonsh/xonsh logical_op_aliases $ aliases['echocat'] = 'echo "hi" || echo "there"' (base) ~/githu/xonsh/xonsh logical_op_aliases $ echocat hi ```
28 lines
342 B
ReStructuredText
28 lines
342 B
ReStructuredText
**Added:**
|
|
|
|
* <news item>
|
|
|
|
**Changed:**
|
|
|
|
* <news item>
|
|
|
|
**Deprecated:**
|
|
|
|
* <news item>
|
|
|
|
**Removed:**
|
|
|
|
* <news item>
|
|
|
|
**Fixed:**
|
|
|
|
* Logical operators in aliases are now executed as expected, e.g.
|
|
``aliases['echocat'] = 'echo "hi" and echo "there"'`` will, when run, return
|
|
|
|
.. code-block::
|
|
hi
|
|
there
|
|
|
|
**Security:**
|
|
|
|
* <news item>
|