mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 08:51:14 -03:00
Allow 'contains' builtin to return index
Add an option -i/--index to the contains builtin to print the index of first coincidence.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
\subsection contains-description Description
|
||||
|
||||
- \c -i or \c --index print the the word index
|
||||
- \c -h or \c --help display this message
|
||||
|
||||
Test if the set VALUES contains the string KEY. Return status is 0 if
|
||||
|
||||
Reference in New Issue
Block a user