tag:blogger.com,1999:blog-8956657929662498275.post1460811870196156648..comments2024-03-12T02:18:42.289-07:00Comments on HP-UX: Chapter 11. Advanced Shell ProgrammingAbhilashhttp://www.blogger.com/profile/10215824176281251673noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8956657929662498275.post-23475989222178422542014-04-16T01:46:32.895-07:002014-04-16T01:46:32.895-07:00Knowledge question 4 is a bad example as neither o...Knowledge question 4 is a bad example as neither of the loops increments the loop variable, making them infinite loops. Without the break command, the script would never terminate, ruling out answers A-C in the first place.Unknownhttps://www.blogger.com/profile/14746509827660059893noreply@blogger.comtag:blogger.com,1999:blog-8956657929662498275.post-31843800096619880082014-04-16T01:32:28.006-07:002014-04-16T01:32:28.006-07:00Knowledge question 1 is faulty (or a trick questio...Knowledge question 1 is faulty (or a trick question) as none of the four given options is correct. To assign to VAR3, you would use<br /><br />VAR3 = (( VAR1 + VAR2 ))<br /><br />but not<br /><br />$VAR3 = (( VAR1 + VAR2 ))<br /><br />The variable name on the left of "=" does not need a leading $ character (or would be replaced by its value before assignment).Unknownhttps://www.blogger.com/profile/14746509827660059893noreply@blogger.com