title: How to run a function created in the shell script in an AIX server?
body: <p>I had created a shell script in a linux machine, it is executing fine in that machine as well as in other linux machine but when I am running the same script in an AIX machine it is not working.</p>
  
  <p>For ex-
  <strong>script1</strong></p>
  
  <pre><code>print "Hello"
  a()
  {
   print "Welcome"
  }
  
  b()
  {
   print "Bye"
  }
  
  a
  b
  </code></pre>
  
  <p>While executing this script in a linux machine the output is</p>
  
  <pre><code>Hello
  Welcome
  Bye
  </code></pre>
  
  <p>But while executing it in an AIX machine the output is</p>
  
  <pre><code>Hello
  </code></pre>
  
  <p>I think it is not calling the function <code>a</code> and <code>b</code> in the AIX machine.
  So can anybody give me solution to run the script in both Linux and Aix machine.</p>