Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
grep: fix command hanging forever when grep.{tool}-args is empty
Fixes commit 1d220bb ("commands: add grep") Fix misplaced closing parenthese in: ``` shlex.split(self.config.get(f'grep.{tool}-args'), '') ``` The empty string is meant as a default value for config.get() but it was passed as a second argument to shlex.split() by mistake. Funny enough this hangs forever: ``` >>> shlex.split(None, comments='') <stdin>:1: DeprecationWarning: Passing None for 's' to shlex.split() is deprecated. (hangs forever) ``` PS: debuggers rulez Signed-off-by: Marc Herbert <[email protected]>
- Loading branch information