Re: Bourne shell short-circuit operators improperly documented

看板FB_chat作者時間16年前 (2009/07/20 06:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串10/10 (看更多)
Brett Glass <brett@lariat.net> wrote: > As I understand it, when it comes to UNIX result codes, 0 doesn't > really mean "true" -- it means "no error." (In other words, it > means "false.") Whereas any nonzero value means there was an error > (and indicates what kind). In other words, it means that it's > "true" that there was an error. You are very confused. $ true; echo $? 0 $ false; echo $? 1 -- Christian "naddy" Weisgerber naddy@mips.inka.de _______________________________________________ freebsd-chat@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-chat To unsubscribe, send any mail to "freebsd-chat-unsubscribe@freebsd.org"
文章代碼(AID): #1AOvUUfv (FB_chat)
討論串 (同標題文章)
完整討論串 (本文為第 10 之 10 篇):
文章代碼(AID): #1AOvUUfv (FB_chat)