{"thread":{"id":"7114","subject":"[PATCH] Fix bash completion to not garble the screen with an error message.","startedAt":"2007-03-06T20:18:44Z","lastAt":"2007-03-06T20:18:44Z","messageCount":1,"participants":["Yann Dirson"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"36470","messageId":"20070306201726.15059.68223.stgit@gandelf.nowhere.earth","threadId":"7114","inReplyTo":null,"subject":"[PATCH] Fix bash completion to not garble the screen with an error message.","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2007-03-06T20:18:44Z","receivedAt":"2007-03-06T20:18:44Z","isPatch":true,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"\nMaybe we could refuse to complete further when the command was not\nrecognized, but at least this fix avoids the annoying behaviour.\n\nSigned-off-by: Yann Dirson <ydirson@altern.org>\n---\n\n contrib/stgit-completion.bash |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/contrib/stgit-completion.bash b/contrib/stgit-completion.bash\nindex 8a027bf..18645dc 100644\n--- a/contrib/stgit-completion.bash\n+++ b/contrib/stgit-completion.bash\n@@ -99,7 +99,7 @@ _all_other_patches ()\n # List the command options\n _cmd_options ()\n {\n-    stg $1 --help | grep -e \" --[A-Za-z]\" | sed -e \"s/.*\\(--[^ =]\\+\\).*/\\1/\"\n+    stg $1 --help 2>/dev/null | grep -e \" --[A-Za-z]\" | sed -e \"s/.*\\(--[^ =]\\+\\).*/\\1/\"\n }\n \n # Generate completions for patches and patch ranges from the given\n"}]}