manpagez: man pages & more
man contains(1)
Home | html | info | man
contains(1)                          fish                          contains(1)




NAME

       contains - test if a word is present in a list


   Synopsis
       contains [OPTIONS] KEY [VALUES...]

   Description
       o -h or --help display this message


       Test if the set VALUES contains the string KEY. Return status is 0 if
       yes, 1 otherwise

   Example
       for i in ~/bin /usr/local/bin
            if not contains $i $PATH
                 set PATH $PATH i
            end
       end


       The above code tests if ~/bin and /usr/local/bin are in the path and if
       they are not, they are added.



Version 1.23.1                    8 Mar 2009                       contains(1)

fish 1.23.1 - Generated Sun Mar 8 13:57:05 CDT 2009
© manpagez.com 2000-2024
Individual documents may contain additional copyright information.