login
Header Space

 
 

Echo $? always return 0

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
Date: Wednesday, April 21, 1993 - 5:24 pm

Hi,guys

Can someone explain to me why the following is
1) create a file as follow: 
        exit 34
2) execute this script file in /bin/sh shell    
3) see what : echo $? : returns back 
4) I received 0, is this a bug? is it fixed?

onnei
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Echo $? always return 0, Onnei Cheng, (Wed Apr 21, 5:24 pm)
speck-geostationary