<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic loop control inside function in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/loop-control-inside-function/m-p/5166041#M681561</link>
    <description>Hi All,&lt;BR /&gt;I need some clarification (and maybe more information) about the attached example script, which is working fine (as it expected) under bash, but not under ksh88/93. In ksh the "break" and "continue" does not do their job if they are passed to the loop from a function. For the "exit" it is OK.&lt;BR /&gt;Please advice.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 25 Mar 2009 10:57:41 GMT</pubDate>
    <dc:creator>Stoyan Stoyanov_1</dc:creator>
    <dc:date>2009-03-25T10:57:41Z</dc:date>
    <item>
      <title>loop control inside function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/loop-control-inside-function/m-p/5166041#M681561</link>
      <description>Hi All,&lt;BR /&gt;I need some clarification (and maybe more information) about the attached example script, which is working fine (as it expected) under bash, but not under ksh88/93. In ksh the "break" and "continue" does not do their job if they are passed to the loop from a function. For the "exit" it is OK.&lt;BR /&gt;Please advice.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Mar 2009 10:57:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/loop-control-inside-function/m-p/5166041#M681561</guid>
      <dc:creator>Stoyan Stoyanov_1</dc:creator>
      <dc:date>2009-03-25T10:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: loop control inside function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/loop-control-inside-function/m-p/5166042#M681562</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Reading:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://my.safaribooksonline.com/0596003307/upt3-CHP-31-SECT-6" target="_blank"&gt;http://my.safaribooksonline.com/0596003307/upt3-CHP-31-SECT-6&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;loop control works the same way outside as inside a function.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 25 Mar 2009 11:01:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/loop-control-inside-function/m-p/5166042#M681562</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-03-25T11:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: loop control inside function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/loop-control-inside-function/m-p/5166043#M681563</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;A 'break' or 'continue' exits from a 'for', 'select', 'until', or 'while' loop, not from a function in the POSIX (or 'ksh') shells.&lt;BR /&gt;&lt;BR /&gt;An 'exit' causes termination of the whole script.  A 'return' exits from a _function_.&lt;BR /&gt;&lt;BR /&gt;Yes, the behavior of the Bash shell is different.  &lt;BR /&gt;&lt;BR /&gt;If you are running on HP-UX, using a Bash shell is fine _AS_LONG_AS_ you _NEVER_ make it the default shell for root.&lt;BR /&gt;&lt;BR /&gt;The POSIX shell in '/sbin/sh' doesn't use shared libraries which aren't available in single user mode.  Hence it MUST be the only shell used during startup.  If you change root's default shell to anything else, you will render your system un-startable!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 25 Mar 2009 11:16:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/loop-control-inside-function/m-p/5166043#M681563</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-03-25T11:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: loop control inside function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/loop-control-inside-function/m-p/5166044#M681564</link>
      <description>Thank you both,&lt;BR /&gt;for fast and accurate response.&lt;BR /&gt;James I've never wanted to change the default root's shell, even I didn't want to install the bash, because of that I found the way to simulate the behavior of bash under ksh in that current situation; it's just using one simple variable.&lt;BR /&gt;And thank you again you two.&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Mar 2009 12:31:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/loop-control-inside-function/m-p/5166044#M681564</guid>
      <dc:creator>Stoyan Stoyanov_1</dc:creator>
      <dc:date>2009-03-25T12:31:38Z</dc:date>
    </item>
  </channel>
</rss>

