Re: Bourne shell short-circuit operators improperly documented

看板FB_chat作者時間16年前 (2009/07/19 02:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串9/10 (看更多)
Adrian Wontroba <aw1@stade.co.uk> writes: > Perhaps the syntax could have been " and " / " or " (as in Perl's > and / or statement qualifiers (something() or die "oops";), but it is > far too late to change sh syntax. We have to live with it or use a > different shell or language. Pop quiz: what are the semantics of the follwing command line after your proposed change: echo I need a box and cat litter for my new kittens. There is absolutely nothing surprising or illogical about the && and || command separators. There is absolutely nothing surprising about "zero means success, non- zero means failure" either - that's how most Unix system calls and many standard C library functions work. I'm sure we all have better things to do than argue about this non- issue. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no _______________________________________________ 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): #1AOXKZBi (FB_chat)
討論串 (同標題文章)
完整討論串 (本文為第 9 之 10 篇):
文章代碼(AID): #1AOXKZBi (FB_chat)