@@ -13,8 +13,8 @@ specific names. `local`izing output variables before invoking a function that
13
13
populates them is the caller's responsibility. Note that if calling multiple
14
14
functions that assign output to the same variable during one completion
15
15
function run, each result should be copied to another variable between the
16
- calls to avoid it possibly being overwritten and lost on the next call. Also,
17
- the variables should also be ensured to be clear before each call that
16
+ calls to avoid it possibly being overwritten and lost on the next call.
17
+ The variables should also be ensured to be clear before each call that
18
18
references the value, variable name, or their existence, typically by `unset
19
19
-v`ing them when multiple such calls are used, to avoid them interfering with
20
20
each other.
@@ -24,8 +24,8 @@ unconventional, but this choice of the name is intended to be consistent with
24
24
the value substitutions ` ${| func; } ` , which is originally supported by mksh
25
25
and will be supported by Bash >= 5.3. The value substitutions are replaced by
26
26
the contents of the output variable ` REPLY ` set by ` func ` . Although we cannot
27
- currently assume Bash 5.3 in the codebase, but we can switch to the value
28
- substitutions at the point Bash <= 5.2 disappear from the market.
27
+ currently assume Bash 5.3 in the codebase, we can switch to the value
28
+ substitutions at the point Bash <= 5.2 disappears from the market.
29
29
30
30
Everything in fallback completion files (ones starting with an underscore)
31
31
is considered private and is to be named accordingly. Fallback files are not
@@ -164,9 +164,9 @@ append the results to the target variable, use `_comp_compgen_split -- "$(cmd
164
164
165
165
A generator function should replace the existing content of the variable by
166
166
default. When the appending behavior is favored, the caller should specify it
167
- through ` _comp_compgen -a NAME ` . The generator function do not need to process
168
- it because internal ` _comp_compgen ` calls automatically reflects the option
169
- ` -a ` specified to the outer calls of ` _comp_compgen ` .
167
+ through ` _comp_compgen -a NAME ` . The generator function does not need to
168
+ process it because internal ` _comp_compgen ` calls automatically reflect the
169
+ option ` -a ` specified to the outer calls of ` _comp_compgen ` .
170
170
171
171
The exit status is implementation-defined.
172
172
0 commit comments