File tree 1 file changed +9
-9
lines changed 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -61,22 +61,22 @@ need that kind of processing (e.g. file and command names). The
61
61
_filedir and _filedir_xspec helpers do this automatically whenever
62
62
they return some completions.
63
63
64
- [[ ${COMPREPLY-} == *= ]] && compopt -o nospace
65
- ------------------------------------------------
64
+ `[[ ${COMPREPLY-} == *= ]] && compopt -o nospace`
65
+ -------------------------------------------------
66
66
67
67
The above is functionally a shorthand for:
68
- ----
69
- if [[ ${#COMPREPLY[@]} -eq 1 && ${COMPREPLY[0]} == *= ]]; then
70
- compopt -o nospace
71
- fi
72
- ----
68
+
69
+ if [[ ${#COMPREPLY[@]} -eq 1 && ${COMPREPLY[0]} == *= ]]; then
70
+ compopt -o nospace
71
+ fi
72
+
73
73
It is used to ensure that long options' name won't get a space
74
74
appended after the equal sign. Calling compopt -o nospace makes sense
75
75
in case completion actually occurs: when only one completion is
76
76
available in COMPREPLY.
77
77
78
- $split && return
79
- ----------------
78
+ ` $split && return`
79
+ ------------------
80
80
81
81
Should be used in completions using the -s flag of _init_completion,
82
82
or other similar cases where _split_longopt has been invoked, after
You can’t perform that action at this time.
0 commit comments