Return a single value from a shell script function - Stack ...

Return a single value from a shell script function - Stack ...

瀏覽:752
日期:2025-06-12
2010年6月29日 - A shell function can return a numeric value. Consider 0 and 1 rather than 'f' and 't' #!/bin/sh a() { R=0 ls -1 a* [ "$?" == "1" ] && { R=1; } return $R } a ......看更多