Re: [转载] how to get the return value of a command by shell?# Unix - 噫吁兮,危乎高哉p*v2001-02-24 08:021 楼not sure of your goal, but $? might work.i am using tcsh.
o*a2001-02-24 08:022 楼that's just what i wanted to know.thanx【在 p**v 的大作中提到】: not sure of your goal, but $? might work.: i am using tcsh.
m*m2001-02-24 08:023 楼Which shell are you using?【在 o**a 的大作中提到】: that's just what i wanted to know.: thanx
o*a2001-02-24 08:024 楼i was using bash. i have tried csh, tcsh, and ash.all work with it.【在 m****m 的大作中提到】: Which shell are you using?
l*g2001-02-24 08:025 楼Or echo $status【在 p**v 的大作中提到】: not sure of your goal, but $? might work.: i am using tcsh.