Skip to content

help output incorrect #472

@msoulier

Description

@msoulier

The help says to OR 2 contexts with the ls command:

ls [TERM...]
      Displays all tasks that contain TERM(s) sorted by priority with line
      numbers.  Each task must match all TERM(s) (logical AND); to display
      tasks that contain any TERM (logical OR), use
      'TERM1\|TERM2\|...' (with quotes), or TERM1\\|TERM2 (unquoted).
      Hides all tasks that contain TERM(s) preceded by a
      minus sign (i.e. -TERM).
      TERM(s) are grep-style basic regular expressions; for literal matching,
      put a single backslash before any [ ] \ $ * . ^ and enclose the entire
      TERM in single quotes, or use double backslashes and extra shell-quoting.
      If no TERM specified, lists entire todo.txt.

I have found that TERM1\\|TERM2 unquoted is unsufficient. It should say to escape both characters.

ie. TERM1\\\|TERM2

This is the only version that worked for me in bash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions