mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-15 14:34:05 +00:00
doc: add links to count and contains commands in list section
This commit is contained in:
parent
a7f62df958
commit
84c95324e1
1 changed files with 9 additions and 0 deletions
|
@ -970,6 +970,15 @@ When a list is exported as an environment variable, it is either space or colon
|
||||||
|
|
||||||
``fish`` automatically creates lists from all environment variables whose name ends in PATH, by splitting them on colons. Other variables are not automatically split.
|
``fish`` automatically creates lists from all environment variables whose name ends in PATH, by splitting them on colons. Other variables are not automatically split.
|
||||||
|
|
||||||
|
Lists can be inspected with the :ref:`count <cmd-count>` or the :ref:`contains <cmd-contains>` commands::
|
||||||
|
|
||||||
|
count $smurf
|
||||||
|
# 2
|
||||||
|
|
||||||
|
contains blue $smurf
|
||||||
|
# key found, exits with status 0
|
||||||
|
|
||||||
|
|
||||||
.. _variables-path:
|
.. _variables-path:
|
||||||
|
|
||||||
PATH variables
|
PATH variables
|
||||||
|
|
Loading…
Reference in a new issue