mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 03:51:14 -03:00
doc: add links to count and contains commands in list section
This commit is contained in:
committed by
Johannes Altmanninger
parent
a7f62df958
commit
84c95324e1
@@ -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.
|
||||
|
||||
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:
|
||||
|
||||
PATH variables
|
||||
|
||||
Reference in New Issue
Block a user