;doc: special characters: edits
This commit is contained in:
parent
0dbcafdebb
commit
8683d5feb2
@ -338,7 +338,7 @@ $ hledger balance cur:\\$
|
|||||||
### Triple-escaping add-on command arguments
|
### Triple-escaping add-on command arguments
|
||||||
|
|
||||||
When you run an external add-on command with `hledger` (described below),
|
When you run an external add-on command with `hledger` (described below),
|
||||||
any options or arguments being passed through to the add-on command will lose one level of shell-escaping.
|
any options or arguments being passed through to the add-on executable will lose one level of shell-escaping.
|
||||||
So those will need an extra level of shell-escaping.
|
So those will need an extra level of shell-escaping.
|
||||||
Or, you can avoid this issue by running the add-on executable directly.
|
Or, you can avoid this issue by running the add-on executable directly.
|
||||||
|
|
||||||
@ -362,13 +362,12 @@ $ hledger-ui cur:\\$
|
|||||||
|
|
||||||
If you're wondering why there's *four* backslashes in the second example, perhaps this helps:
|
If you're wondering why there's *four* backslashes in the second example, perhaps this helps:
|
||||||
|
|
||||||
| | |
|
| ||
|
||||||
|-----------------|---------|
|
|---------|----------------------------------------------------------------------------------------------------------
|
||||||
| unescaped: | `$` |
|
| `$` | is unescaped
|
||||||
| escaped: | `\$` |
|
| `\$` | is single-escaped (for regex)
|
||||||
| double-escaped: | `\\$` |
|
| `\\$` | is double-escaped (for regex, then for shell)
|
||||||
| triple-escaped: | `\\\\$` |
|
| `\\\\$` | is triple-escaped (for regex, then for shell, then both slashes once more for hledger argument pass-through
|
||||||
|
|
||||||
|
|
||||||
### Escaping in other contexts
|
### Escaping in other contexts
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user