博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
微视linux bash返回值
阅读量:4069 次
发布时间:2019-05-25

本文共 309 字,大约阅读时间需要 1 分钟。

linux shell返回

function test()
{
    return 257
}
写程序测试,发现返回1,也就是 257 mod 256 == 1

下面是原因

什么是Linux中/ bash程序返回值的有效范围?(What is the valid range for program return value in Linux/bash?)

http://www.it1352.com/321573.html

25.7.2 Exit Status

http://www.gnu.org/savannah-checkouts/gnu/libc/manual/html_node/Exit-Status.html

转载地址:http://hylji.baihongyu.com/

你可能感兴趣的文章
io口的作用
查看>>
IO口的作用
查看>>
UIView的使用setNeedsDisplay
查看>>
归档与解归档
查看>>
Window
查看>>
为什么button在设置标题时要用一个方法,而不像lable一样直接用一个属性
查看>>
字符串的截取
查看>>
2. Add Two Numbers
查看>>
17. Letter Combinations of a Phone Number (DFS, String)
查看>>
93. Restore IP Addresses (DFS, String)
查看>>
19. Remove Nth Node From End of List (双指针)
查看>>
49. Group Anagrams (String, Map)
查看>>
139. Word Break (DP)
查看>>
23. Merge k Sorted Lists (Divide and conquer, Linked List) 以及java匿名内部类
查看>>
Tensorflow入门资料
查看>>
剑指_用两个栈实现队列
查看>>
剑指_顺时针打印矩阵
查看>>
剑指_栈的压入弹出序列
查看>>
剑指_复杂链表的复制
查看>>
服务器普通用户(非管理员账户)在自己目录下安装TensorFlow
查看>>