由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - what is the reason?
相关主题
Sun Certified System Administrator for Solaris请教How to adjust man output?
solaris8 and winxp dual boot on Dell laptop请教How to get rid of the bg job id redirection?
急救: 用rm 删除的文件可以恢复吗?Help for No Hangup process
怎样在 bash 下search PATHSome simple Unix questions
urgent! help needed!how to see the output to stderr?
shell programmingVideo output of Sun Server
awk question有人知道吗?Re: 怎样知道程序运行时间?time 什么来着?
how to redirect error output under unixHelp, What happen to Audio output when using Exceed
相关话题的讨论汇总
话题: return话题: output话题: testf2话题: return1话题: why
进入Unix版参与讨论
1 (共1页)
s*****i
发帖数: 650
1
function testF2
{
return 0
}
testF2
return1=$?
echo "testF2 return: " $return1
If return 0; output is: 0
If return 1; output is: 1
If return 11; output is: 11
If return 111; output is: 111
If return 1111; output is: 87 why?
If return 11111; output is: 103 why?
If return 111111; output is: 7 why?
If return 1111111: output is: 71 why?
thx alot.
H***a
发帖数: 189
2
it's return1 % 128
unsigned short?

【在 s*****i 的大作中提到】
: function testF2
: {
: return 0
: }
: testF2
: return1=$?
: echo "testF2 return: " $return1
: If return 0; output is: 0
: If return 1; output is: 1
: If return 11; output is: 11

1 (共1页)
进入Unix版参与讨论
相关主题
Help, What happen to Audio output when using Exceedurgent! help needed!
A question about command timeshell programming
perl Qawk question
[转载] 问个shell怎么写?how to redirect error output under unix
Sun Certified System Administrator for Solaris请教How to adjust man output?
solaris8 and winxp dual boot on Dell laptop请教How to get rid of the bg job id redirection?
急救: 用rm 删除的文件可以恢复吗?Help for No Hangup process
怎样在 bash 下search PATHSome simple Unix questions
相关话题的讨论汇总
话题: return话题: output话题: testf2话题: return1话题: why