*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> command (1)              



NAME    [Toc]    [Back]

       command - Treats command arguments as simple commands

SYNOPSIS    [Toc]    [Back]

       command [-p] command_name [argument...]

       command [-v  | -V] command_name

       The  command  command  causes the shell to treat the arguments
 to command as simple commands,  and  suppresses  the
       default shell function lookup.

STANDARDS    [Toc]    [Back]

       Interfaces  documented  on  this reference page conform to
       industry standards as follows:

       command:  XCU5.0

       Refer to the standards(5) reference page for more information
 about industry standards and associated tags.

OPTIONS    [Toc]    [Back]

       Performs the command search using a default value for PATH
       that is guaranteed to find all of the standard  utilities.
       Writes a string to standard output that indicates the path
       name or command to be used by the  shell  in  the  current
       shell   execution   environment  to  invoke  command_name.
       Writes a string to standard output that indicates how  the
       name given in the command_name operand will be interpreted
       by the shell in the current shell execution environment.

DESCRIPTION    [Toc]    [Back]

       The command command allows you to run the  following  commands:
  User-defined  commands  whose  names correspond to
       shell built-in commands.  System commands whose names correspond
 to shell built-in commands.

       The command_name argument specifies the name of a utility.
       The one or more optional arguments to command_name specify
       strings treated as arguments to the specified utility.  It
       also provides information concerning how  a  command  name
       will be interpreted by the shell.

NOTES    [Toc]    [Back]

       [Tru64  UNIX]  If  command_name is not the name of a function,
 the effect of  command  is  the  same  as  would  be
       obtained by specifying command_name without command.

RESTRICTIONS    [Toc]    [Back]

       Since  the  -v and -V options to command produce output in
       relation to the current shell  execution  environment,  if
       command is called in a subshell or separate utility execution
 environment, it may not produce correct results.  The
       following are examples of this type of operation:

       (PATH=foo command -v) nohup command -v

EXIT STATUS    [Toc]    [Back]

       When  the  -v or -V options are specified, command returns
       one of the following values.  Successful completion.   The
       command_name could not be found, or an error occurred.

       If the -v or -V options are not specified, command returns
       one of the following values on error.  The utility  specified
  by  command_name was found but could not be invoked.
       An error occurred in the command command, or  the  utility
       specified  by  the  command_name  argument  could  not  be

       If no error occurs, the exit status of command is that  of
       the command specified by the arguments to command.

EXAMPLES    [Toc]    [Back]

       To  ensure  execution of the simple command pwd instead of
       the pwd shell built-in command, enter the following:  command
 -p pwd

       The  preceding  command displays the full path name of the
       current directory, and does not perpetuate a view  of  the
       current  directory  location created by links as the shell
       built-in command might do.


       The following environment variables affect  the  execution
       of  command: Provides a default value for the internationalization
 variables that are unset or  null.  If  LANG  is
       unset  or  null,  the corresponding value from the default
       locale is used.  If any of the internationalization  variables
  contains an invalid setting, the utility behaves as
       if none of the variables had been defined.  If  set  to  a
       non-empty  string  value,  overrides the values of all the
       other  internationalization  variables.   Determines   the
       locale  for  the  interpretation  of sequences of bytes of
       text data  as  characters  (for  example,  single-byte  as
       opposed to multibyte characters in arguments).  Determines
       the locale that should be used to affect  the  format  and
       contents of diagnostic messages written to standard error.
       Determines the location of message catalogues for the processing
  of  LC_MESSAGES.  Determines the search path used
       during the command search unless the -p option  is  specified.

SEE ALSO    [Toc]    [Back]

       Commands:  env(1), hash(1), type(1)

       Standards:  standards(5)

[ Back ]
 Similar pages
Name OS Title
ipxfargc IRIX Returns the number of command-line arguments excluding the command name
getscroll IRIX parse arguments for scrolling commands
launch IRIX graphical utility to enter and invoke commands with arguments
apply Tru64 Applies a command to a set of arguments
apply IRIX apply a command to a set of arguments
apply OpenBSD apply a command to a set of arguments
apply FreeBSD apply a command to a set of arguments
getopt Tru64 Parses command line flags and arguments
getsubopt Tru64 Parse suboption arguments from a command line
command IRIX execute a simple command
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service