HP-UX Reference (11i v2 07/12) - 1 User Commands N-Z (vol 2)
s
sh-posix(1) sh-posix(1)
On encountering a history file with invalid characters for the current locale setting, the shell will inform
the user about it and continue processing user input. No history features will be available to the user in
such a session. Restarting the shell after setting a new history file or after removing the current history
file allows the user to access the history features.
Here-Document Temp Files
The contents of here-documents are stored in temporary files named
/var/tmp/sh
pid.number. Usu-
ally, these temporary files are removed after they are used. However, due to design limitations, these tem-
porary files may sometimes continue to exist after the shell exits. pid is the process ID of the shell.
number is a sequence number for the here-document files.
AUTHOR
sh was developed by AT&T, OSF, and HP.
FILES
$HOME/.profile
Read to set up user’s custom environment
/etc/passwd To find home directories
/etc/profile Read to set up system environment
/etc/suid_profile
Security profile
/sbin/sh Archived executable, especially for root access
/tmp/shpid.number For here-documents if
/var/tmp is not accessible
/usr/bin/sh Standard executable for the POSIX shell
/var/tmp/sh pid.number For here-documents if
/var/tmp is accessible
SEE ALSO
cat(1), cd(1), command(1), echo(1), ed(1), env(1), getopts(1), kill(1), ln(1), login(1), newgrp(1), printf(1),
pwd(1), read(1), stty(1), test(1), time(1), umask(1), vi(1), dup(2), exec(2), fork(2), pipe(2), stty(2), ulimit(2),
umask(2), wait(2), rand(3C), a.out(4), profile(4), environ(5), lang(5), regexp(5), signal(5).
STANDARDS CONFORMANCE
sh: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
.: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
:: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
break: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
case: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
continue: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
eval: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
exec: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
exit: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
export: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
for: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
if: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
read: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
return: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
set: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
shift: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
time: SVID2, SVID3, XPG2, XPG3, XPG4
trap: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
unset: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
until: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
while: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
HP-UX 11i Version 2: December 2007 Update − 27 − Hewlett-Packard Company 291