title: Unable to set variable as a script for C-shell
body: <p>This is very simple. I am trying to set my variable in a second script. I have tried multiple ways but does not work. Hence all the commented out section. The first script you run IE:unit3.2a.sh 3 5  this would return 8. The second script should read the result as 8. I am using cygwin.</p>
  <p>unit3.2a.sh
  '''</p>
  <pre><code>#!/bin/csh
  
  set a = 0
  set b = 0
  set c = 0
  
  @ a = $1
  @ b = $2
  
  @ c = $a + $b
  
  echo $c
  </code></pre>
  <p>'''</p>
  <p>unit3.sh
  '''</p>
  <pre><code>#!/bin/csh
  
  a=$(~./unit3.2a.sh)
  #below is all that don't work!
  #instructors: a =~./unit3.2a.sh 2 200
  #./unit3.2a.sh &quot;2&quot; &quot;200&quot;
  #~./unit3.2a.sh 2 200
  #=$(./unit3.2a.sh 2 200)
  #=$(./unit3.2a.sh)+(2 200)
  #$(./unit3.2a.sh 2 200)
  #$(/home/Admin/unit3.2a.sh)
  #$(/home/Admin/unit3.2a.sh 2 200)
  #added echo $a to see if I wasnt seeing  anything the echo text works fine but a variable does not read?
  #set a='./unit3.2a.sh 2 200'
  ##set a=$(cat ./unit3.2a.sh 2 200)
  #$ ./unit3.sh
  #cat: 2: No such file or directory
  #cat: 200: No such file or directory
  #set a=$(~./unit3.2a.sh 2 200)
  #a=$(~./unit3.2a.sh 2 200)
  
  
  
  echo $a
  
  echo &quot;The result is: $a&quot;
  
  echo &quot;Storing the results..............&quot;
  
  echo &quot;Storing the result: $a&quot; &gt;&gt; unit3.txt
  
  echo &quot;The script is over&quot;
  </code></pre>
  <p>'''</p>