subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r1816891 - /subversion/trunk/tools/client-side/bash_completion_test
Date Fri, 01 Dec 2017 17:04:46 GMT
Author: julianfoad
Date: Fri Dec  1 17:04:46 2017
New Revision: 1816891

URL: http://svn.apache.org/viewvc?rev=1816891&view=rev
Log:
* tools/client-side/bash_completion_test:
  (get_svn_options): Detect options even if command has no non-global options.

Modified:
    subversion/trunk/tools/client-side/bash_completion_test

Modified: subversion/trunk/tools/client-side/bash_completion_test
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/client-side/bash_completion_test?rev=1816891&r1=1816890&r2=1816891&view=diff
==============================================================================
--- subversion/trunk/tools/client-side/bash_completion_test (original)
+++ subversion/trunk/tools/client-side/bash_completion_test Fri Dec  1 17:04:46 2017
@@ -117,7 +117,7 @@ get_svn_options() {
       # Remove deprecated options
       grep -v deprecated |
       # Find the relevant lines; remove "arg" and description.
-      sed -n -e '1,/^Valid options:$/d;/^  -/!d' \
+      sed -n -e '1,/^\(Valid\|Global\) options:$/d;/^  -/!d' \
              -e 's/\( ARG\)* * : .*//;p' |
       # Remove brackets; put each word on its own line.
       tr -d '] ' | tr '[' '\n'



Mime
View raw message