De os documentos do Oracle Solaris (XPG)
Utilities
If the behavior required by POSIX.2, POSIX.2a, XPG4, SUS, or SUSv2 conflicts with historical Solaris utility behavior, the original Solaris version of the utility is unchanged; a new version that is standard-conforming has been provided in
/usr/xpg4/bin
. For applications wishing to take advantage of POSIX.2, POSIX.2a, XPG4, SUS, or SUSv2 features, thePATH
(sh
orksh
) orpath
(csh
) environment variables should be set with/usr/xpg4/bin
preceding any other directories in which utilities specified by those specifications are found, such as/bin
,/usr/bin
,/usr/ucb
, and/usr/ccs/bin
.
Se você precisar usar expressões regulares estendidas, defina /usr/xpg4/bin
no início de seu PATH
e use grep -E
.