On Wed, Nov 08, 2006 at 01:04:51PM -0000, Clint Adams wrote: > > bug found following a discussion in comp.unix.shell. > > > > The POSIX command "type" is not in posh. This command has to be > > built in as it must report about functions, builtins, keywords > > and aliases. > > > > For some reason, it was apparently removed in an early version, > > which is incorrect. > > "type" is an X/Open extension; note the XSI marking in the POSIX > standard. Since it is not required by POSIX or by debian policy, posh > doesn't implement it. [...]
Indeed, you're right, sorry about that. That means that a POSIX script has no mean to verify whether a command exists or not. I wonder why POSIX left it out. It was in the Bourne shell since SVR2 and certainly in ksh from the start. Best regards, Stephane -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

