From 96856994916d7bac72e5aa4872dc32e42d6a1949 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 11 Oct 2018 18:00:36 -0700 Subject: [PATCH] docs: options: clarify special characters topic [ci skip] --- hledger/hledger_options.m4.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hledger/hledger_options.m4.md b/hledger/hledger_options.m4.md index 1dd11d770..8b4643548 100644 --- a/hledger/hledger_options.m4.md +++ b/hledger/hledger_options.m4.md @@ -39,12 +39,12 @@ and then reuse them by writing `@FILENAME` in a command line. To prevent this expansion of `@`-arguments, precede them with a `--` argument. For more, see [Save frequently used options](https://github.com/simonmichael/hledger/wiki/Save-frequently-used-options). -## Special characters +## Special characters in command line -Option and argument values which contain problematic characters +Option and argument values which contain "problematic" characters should be escaped with double quotes, backslashes, or (best) single quotes. Problematic characters means spaces, and also characters which are significant to your -command shell, such as less-than/greater-than. +command shell, such as `<`, `>`, '(', ')', '|' and '$'. Eg: `hledger register -p 'last year' "accounts receivable (receivable|payable)" amt:\>100`. Characters which are significant both to the shell and in