mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Merge pull request #3881 from willsALMANJ/doc-bash-env-escape
Document variable escaping in bash_to_xonsh
This commit is contained in:
commit
4efcbea46f
2 changed files with 26 additions and 0 deletions
|
@ -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,
|
||||
|
|
23
news/doc-bash-env-escape.rst
Normal file
23
news/doc-bash-env-escape.rst
Normal 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>
|
Loading…
Add table
Reference in a new issue