本文共 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.html25.7.2 Exit Status
http://www.gnu.org/savannah-checkouts/gnu/libc/manual/html_node/Exit-Status.html转载地址:http://hylji.baihongyu.com/