Russ Allbery wrote:
Richard Kettlewell <rjk@greenend.org.uk> writes:
In fact 'type' is listed in the SUS, so I think this warning is just plain wrong. http://www.opengroup.org/onlinepubs/009695399/utilities/type.htmlIt's an XSI extension (that's what the notation in the synopsis section means), which means you're not allowed to use it in /bin/sh scripts in Debian per current Policy. Only the base POSIX features are allowed at present (plus the exceptions listed in Policy).
The current online policy text (s10.4) is:
    Scripts may assume that /bin/sh implements the SUSv3 Shell
    Command Language[66] plus the following additional features
    not mandated by SUSv3:
     [...]
The SUS text is:
    3.439 XSI
    The X/Open System Interface is the core application programming
    interface for C and sh programming for systems conforming to the
    Single UNIX Specification. This is a superset of the mandatory
    requirements for conformance to IEEE Std 1003.1-2001.
http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap03.html#tag_03_439
To my mind this says that conformance to SUS implies supporting the XSI 
features, so anything that assumes SUSv3 should be able to assume XSI as 
a consequence.
ttfn/rjk