Skip to content

Commit 542139e

Browse files
committed
BUG: Documentation: Backslashes in help for list|ls need to be escaped
As parameter extension is active in the here-document. Escape the literal "$" as well; not needed, but better style. Fixes #472
1 parent b20f9b4 commit 542139e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

todo.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,11 @@ actionsHelp()
219219
Displays all tasks that contain TERM(s) sorted by priority with line
220220
numbers. Each task must match all TERM(s) (logical AND); to display
221221
tasks that contain any TERM (logical OR), use
222-
'TERM1\|TERM2\|...' (with quotes), or TERM1\\\|TERM2 (unquoted).
222+
'TERM1\\|TERM2\\|...' (with quotes), or TERM1\\\\\\|TERM2 (unquoted).
223223
Hides all tasks that contain TERM(s) preceded by a
224224
minus sign (i.e. -TERM).
225225
TERM(s) are grep-style basic regular expressions; for literal matching,
226-
put a single backslash before any [ ] \ $ * . ^ and enclose the entire
226+
put a single backslash before any [ ] \\ \$ * . ^ and enclose the entire
227227
TERM in single quotes, or use double backslashes and extra shell-quoting.
228228
If no TERM specified, lists entire todo.txt.
229229

0 commit comments

Comments
 (0)