Escolar Documentos
Profissional Documentos
Cultura Documentos
Can someone help me with this in KSH and tell me why the exit status is
not returned?
Why is "haha" printed?
#!/bin/ksh
getNoGlobalProc()
{
local a=`ls sdfafa`
if [[ $? ne 0 ]]; then
echo "$SCRIPTNAME : $LINENO : Could not obtain global number of
processes running"
return 1
fi
echo "haha"
return 0
}
getNoGlobalProc