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

  man pages->Tru64 Unix man pages -> sh (1)              
Title
Content
Arch
Section
 

sh(1)

Contents


NAME    [Toc]    [Back]

       sh - Shell, the standard command language interpreter

DESCRIPTION    [Toc]    [Back]

       [Tru64 UNIX]  Tru64 UNIX provides two command interpreters
       with the name sh.  The XCU5.0 and POSIX.2  compliant  command
   interpreter   sh   is   available   in   the   file
       /usr/bin/posix/sh and is described in the sh(1p) reference
       page.   The  Bourne  shell,  historically  known as sh, is
       available in the file /usr/bin/sh and is described in  the
       sh(1b) reference page.

       [Tru64  UNIX]  Your initial, or login, shell is determined
       by your entry in the file /etc/passwd. This  file  can  be
       changed  only  by  your system administrator. You must use
       whatever procedures are in place at your location to  have
       this entry changed.

       [Tru64 UNIX]  If available on your system, you may use the
       passwd -s or the chsh commands to change your login shell.

                                  Note

       This  option  is  not available if your site manages passwords
 through the Network Information Service (NIS) facility.
  Check with your system administrator.

       [Tru64  UNIX]  Subsequent  shells spawned from the initial
       shell depend on the  value  in  the  environment  variable
       BIN_SH.   If this variable is set to xpg4, the POSIX shell
       is started. If this variable is set to svr4, an SVR4  compliant
  version  of the shell is started. If this variable
       is unset, the Bourne shell is started. If this variable is
       set  to  any  other  value,  an  error is reported and the
       results are unpredictable. See the  EXAMPLES  section  for
       information on setting this variable.

NOTES    [Toc]    [Back]

       [Tru64  UNIX]  With Tru64 UNIX Version 4.0 the Korn shell,
       /usr/bin/ksh   is   the   same   as   the   POSIX    shell
       /usr/bin/posix/sh.

RESTRICTIONS    [Toc]    [Back]

       [Tru64  UNIX]  The  file  /etc/shells must include entries
       for both the POSIX shell /usr/bin/posix/sh and the  Bourne
       shell,  /usr/bin/sh.  If  this file is incorrect, see your
       system administrator.

EXAMPLES    [Toc]    [Back]

       Using the Bourne, Korn, or POSIX shell, to set  the  variable
  BIN_SH  to  use  the  POSIX/XCU5.0  compliant shell,
       enter: BIN_SH=xpg4 export BIN_SH Using the  Bourne,  Korn,
       or  POSIX  shell,  to  set  the variable BIN_SH to use the
       POSIX/XCU5.0 compliant shell,  enter:  BIN_SH=svr4  export
       BIN_SH  Using  the  Bourne, Korn, or POSIX shell, to unset
       the variable BIN_SH, enter:  unset  BIN_SH  Using  the  C/
       shell,  to set the variable BIN_SH to use the POSIX/XCU5.0
       compliant shell, enter: setenv BIN_SH xpg4  Using  the  C/
       shell,  to set the variable BIN_SH to use the POSIX/XCU5.0
       compliant shell, enter: setenv BIN_SH svr4  Using  the  C/
       shell,  to  unset  the  variable  BIN_SH,  enter: unsetenv
       BIN_SH

FILES    [Toc]    [Back]

       User profile.  Contains user  information,  including  the
       login  shell  name.   Contains  the names of available and
       permitted shells.

SEE ALSO    [Toc]    [Back]

      
      
       Commands:  csh(1),  ksh(1),  Bourne  shell  sh(1b),  POSIX
       shell sh(1p), passwd(1)

       Files:  passwd(4), shells(4)

       Standards:  standards(5)



                                                            sh(1)
[ Back ]
 Similar pages
Name OS Title
sh Tru64 Shell, the standard command language interpreter (POSIX Shell)
Rsh Tru64 The Bourne shell, an interactive command interpreter and command programming language
sh Tru64 The Bourne shell, an interactive command interpreter and command programming language
bsh IRIX shell, the standard/job control command programming language
ksh HP-UX shell, the standard/restricted command programming language
rksh HP-UX shell, the standard/restricted command programming language
csh Tru64 C shell command interpreter
sh FreeBSD command interpreter (shell)
csh HP-UX a shell (command interpreter) with C-like syntax
history OpenBSD a shell (command interpreter) with C-like syntax
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service