Skip to content

Commit 1eb7a6e

Browse files
committed
fix(xfunc ARRAY filter): elaborate the option description
1 parent 7d7b961 commit 1eb7a6e

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

completions/ARRAY

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,26 @@
1919
# array-element value stored in the shell variable "value".
2020
#
2121
# Options:
22+
#
23+
# The following options specify the type of the pattern. When mutiple
24+
# options are supplied, the last-specified one overwrite the previous
25+
# option.
26+
#
2227
# -E $2 is interpreted as a POSIX extended regular expression.
2328
# The default anchoring is `-m` (see below).
2429
# -F $2 is interpreted as a fixed string. The default anchoring
2530
# is `-m` (see below).
2631
# -G $2 is interpreted as a glob pattern. The default anchoring
2732
# is `-x` (see below).
2833
#
29-
# -p Combined with -EFG, it performs the prefix matching.
30-
# -s Combined with -EFG, it performs the suffix matching.
31-
# -m Combined with -EFG, it performs the middle matching.
32-
# -x Combined with -EFG, it performs the exact matching.
34+
# Combined with any of -EFG, the following options specify the anchoring
35+
# type of the pattern matching. When multiple options are supplied, the
36+
# last-specified one overwrites the previous option.
37+
#
38+
# -p performs the prefix matching.
39+
# -s performs the suffix matching.
40+
# -m performs the middle matching.
41+
# -x performs the exact matching.
3342
#
3443
# -r Revert the condition, i.e., remove elements that satisfy
3544
# the original condition.

0 commit comments

Comments
 (0)