Redian新闻
>
Re: [转载] how to get the return value of a command by shell?
avatar
Re: [转载] how to get the return value of a command by shell?# Unix - 噫吁兮,危乎高哉
p*v
1
not sure of your goal, but $? might work.
i am using tcsh.
avatar
o*a
2
that's just what i wanted to know.
thanx

【在 p**v 的大作中提到】
: not sure of your goal, but $? might work.
: i am using tcsh.

avatar
m*m
3
Which shell are you using?

【在 o**a 的大作中提到】
: that's just what i wanted to know.
: thanx

avatar
o*a
4
i was using bash. i have tried csh, tcsh, and ash.
all work with it.

【在 m****m 的大作中提到】
: Which shell are you using?
avatar
l*g
5
Or echo $status

【在 p**v 的大作中提到】
: not sure of your goal, but $? might work.
: i am using tcsh.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。