From 0affb5822f12d754406bf371651b9278ed11fb78 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Sun, 10 Mar 2019 23:15:48 +0000 Subject: Quiet command regex instructions during batch execution Summary: Within .lldbinit, regex commands can be structured as a list of substitutions over multiple lines. It's possible that this is uninentional, but it works and has benefits. For example: command regex s/pat1/repl1/ s/pat2/repl2/ ... I use this form of `command regex` in my `~/.lldbinit`, because it makes it clearer to write and read compared to a single line definition, because multiline substitutions don't need to be quoted, and are broken up one per line. However, multiline definitions result in usage instructions being printed for each use. The result is that every time I run `lldb`, I get a dozen or more lines of noise. With this change, the instructions are only printed when `command regex` is invoked interactively, or from a terminal, neither of which are true when lldb is sourcing `~/.lldbinit`. Reviewers: clayborg, jingham Reviewed By: clayborg Subscribers: jdoerfert, kastiglione, xiaobai, keith, lldb-commits Differential Revision: https://reviews.llvm.org/D48752 llvm-svn: 355793 --- lldb/lit/Commands/command-regex-delete.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/lit/Commands/command-regex-delete.test') diff --git a/lldb/lit/Commands/command-regex-delete.test b/lldb/lit/Commands/command-regex-delete.test index 04ac5d0b3ba..ddc6259a9c9 100644 --- a/lldb/lit/Commands/command-regex-delete.test +++ b/lldb/lit/Commands/command-regex-delete.test @@ -2,7 +2,7 @@ # RUN: %lldb -s %s 2>&1 | FileCheck %s command regex 'Help__' -# CHECK: Enter one of more sed substitution commands in the form +# CHECK: Enter one or more sed substitution commands in the form # We need to leave a new line after to end the regex. s/^$/help/ -- cgit v1.2.3