Merge pull request #3881 from willsALMANJ/doc-bash-env-escape

Document variable escaping in bash_to_xonsh
This commit is contained in:
Anthony Scopatz 2020-10-13 13:28:20 -05:00 committed by GitHub
commit 4efcbea46f
Failed to generate hash of commit
2 changed files with 26 additions and 0 deletions

View file

@ -29,6 +29,9 @@ line is ``#!/usr/bin/env xonsh``.
* - ``something/$SOME_VAR/$(some_command)``
- ``@('something/' + $SOME_VAR + $(some_command).strip())``
- Concatenate a variable or text with the result of running a command.
* - ``echo 'my home is $HOME'``
- ``echo @("my home is $HOME")``
- Escape an environment variable from expansion.
* - ``${!VAR}``
- ``${var or expr}``
- Look up an environment variable via another variable name. In xonsh,

View file

@ -0,0 +1,23 @@
**Added:**
* Add method of escaping an environment variable from expansion to the Bash to Xonsh Translation Guide.
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>