kajgan / fbterm

Automatically exported from code.google.com/p/fbterm
0 stars 0 forks source link

Exit value should be non-zero if there is an error #73

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If fbterm can't be started correctly, it should return a value indicating 
error. This value can be used by bash scripts. 

What steps will reproduce the problem?
1.run fbterm in a non-interactive tty, fbterm prints a message "stdin isn't a 
interactive tty!"
2.run echo $? to get the return value. It is 0.

What is the expected output?
It's expected to be non-zero.

Original issue reported on code.google.com by derste...@gmail.com on 17 Nov 2014 at 3:01

GoogleCodeExporter commented 9 years ago
It seems fbterm is no longer actively maintained, but it will be very useful a 
command switch to test if fbterm will be correctly started, so as to be able to 
do `exec fbterm` if there will be no error.

See https://github.com/robbyrussell/oh-my-zsh/pull/1598#issuecomment-125107789

Original comment by spencer...@gmail.com on 9 Aug 2015 at 8:41