Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

csh(1csh)

sh(1sh)

type(1sh)

which(1csh)

which(1sh)



PATHOF(1)               COMMAND REFERENCE               PATHOF(1)



NAME
     pathof - print the path of a command

SYNOPSIS
     pathof [ -a ] [ -s ] command ...

DESCRIPTION
     For each command name given, pathof searches all directories
     named in the environment variable $PATH for an executable
     file by that name.  If such a file is found, its pathname is
     written to standard out.  Otherwise an error message is
     written to standard error.  If the -s option is used, no
     messages are written; only an exit status is returned.

OPTIONS
     -a All paths for that command are found rather than just the
        one that would currently be executed.

     -s No messages are written; only an exit status is returned.

EXAMPLES
     Pathof is useful in finding what version of a program you
     are executing.

          pathof a.out

     Finding whether a program exists by a particular name:

          if pathof -s a.out; then...

     Editing shell scripts:

          vi `pathof nohup`

VARIABLES
     PATH           The user's execution search path.

RETURN VALUE
     [NO_ERRS]      Command completed without error.

     [1]            At least one of the commands specified was
                    not found.

     [USAGE]        Incorrect command line syntax. Execution
                    terminated.

SEE ALSO
     csh(1csh), sh(1sh), type(1sh), which(1csh), and which(1sh).







Printed 5/12/88                                                 1



%%index%%
na:288,88;
sy:376,242;
de:618,595;
op:1213,298;
ex:1511,415;
va:1926,155;
rv:2081,366;
se:2447,220;
%%index%%000000000133

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026