doc: add links to count and contains commands in list section

This commit is contained in:
Delapouite 2020-03-13 07:41:00 +01:00 committed by Johannes Altmanninger
parent a7f62df958
commit 84c95324e1

View file

@ -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