I was confused by this when I started to administrate HP-UX systems relatively recently. Their
/bin/sh is distinct from the Bourne
POSIX standard shell, it is apparently known as "the
POSIX shell" and has a lot of
ksh features (but not all). From the HP-UX 11.23 man page:
Quote:
The POSIX.2 standard requires that, on a POSIX-compliant system,
executing the command sh activates the POSIX shell (located in file
/usr/bin/sh on HP-UX systems), and executing the command man sh
produces an on-line manual entry that displays the syntax of the POSIX
shell command-line.
However, the sh command has historically been associated with the
conventional Bourne shell, which could confuse some users. To meet
standards requirements and also clarify the relationships of the
various shells and where they reside on the system, this entry
provides command-line syntax and a brief description of each shell,
and lists the names of the manual entries where each shell is
described in greater detail.
NOTE : The Bourne shell (/usr/old/bin/sh) is removed from the system
starting with HP-UX 11i Version 1.5. Please use the POSIX shell
(/usr/bin/sh) as an alternative.
|
What operating system were you testing on? The effect you see is what I'd have expected on Solaris, for example, where they seem to have a policy of retaining every piece of prehistoric paraphernalia they can (
/usr/bin/awk is the one I find particularly frustrating).