root @ mysolarisbox:/> echo ACTIVE SHELL IS $SHELL END
ACTIVE SHELL IS /sbin/sh END
root @ mysolarisbox:/> pkginfo -q ATRSnsclt; echo ERROR=$?
Variable syntax
root @ mysolarisbox:/> mkdir -p /opt/altiris/notification/nsagent; echo ERROR=$?
Variable syntax
root @ mysolarisbox:/>
In bourne shells, the status for shell commands is returned by the "$?' variable. In C-shells, it is returned by "$status".
Issuing a "$?" variable in a c-shell will return that 'variable syntax' error.