【发布时间】:2014-01-25 13:13:40
【问题描述】:
以下两个 KornShell (ksh) sn-ps 之间有什么区别,因为它们在测试期间的行为完全相同到目前为止?返回代码(例如,退出代码、返回状态、退出状态、returnCode)来自 SQL*Plus 命令(如果重要)。
kornShellSnippet1.ksh
returnCode=${?}
if [[ ${returnCode} -ne 0 ]]; then #successful command returns 0#
kornShellSnippet2.ksh
returnCode=${?}
if [[ ${returnCode} != 0 ]]; then #successful command returns 0#
【问题讨论】: