You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2017/12/01 17:04:46 UTC
svn commit: r1816891 -
/subversion/trunk/tools/client-side/bash_completion_test
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'