Help for this page

Select Code to Download


  1. or download this
    DESCRIPTION
    which returns the pathnames of the files (or links) which would be exe
    +-
    ...
    mands  in a strictly POSIX-conformant shell.  It does this by searchin
    +g
    the PATH for executable files matching the names of the  arguments.  I
    +t
    does not canonicalize path names.
    
  2. or download this
    $ echo $SHELL
    /bin/bash
    
  3. or download this
    $ echo $PATH
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/game
    +s:/usr/local/games:/snap/bin
    ...
    
    $ perl -le 'print $];'
    5.026001
    
  4. or download this
    $ perl -le 'print $];'
    5.026001
    $ export PATH=~/nonexistent:$PATH
    $ perl -le 'print $];'
    5.028000