title: How to solve "Word too long" error in unix?
body: <p>I am writing a TC shell script called pl_dict in unix that accepts a list of English words in singular form as input, and prints out the plural form of each word in a separate line. It makes use of a file containing a list of words in the English language and another c program that accepts an English word in singular form as its argument, and prints the plural form of the word. 
  Here is my code:</p>
  
  <pre><code>set dictionary = (/usr/share/dict/words)
  
  set irregular = (/share/files/irregular.txt)
  
   #go over all the input words
  
  foreach word ($argv[*])
  
      set irregularWord = `grep $word $irregular | cut -d" " -f1`
  
      #the word is found in irregular.txt file
      if ("$irregularWord" != "") then
         gcc -o pluralize pluralize.c
         ./pluralize -f irregular.txt $word
  
      else #the word is not found in the irregular file
  
         #search for it in the dictionary
         set realEnglishWord = `grep $word $dictionary`
  
         #the word is a real English word
         if ("$realEnglishWord" != "") then
            gcc -o pluralize pluralize.c
            ./pluralize $word
         else
            echo "$word":" word not found in dictionary."
         endif
      endif
  end
  </code></pre>
  
  <p>It works just fine until I try to run this: pl_dict fish foot foox house mouse</p>
  
  <p>Here the output I get is:</p>
  
  <pre><code>fish
  
  feet
  
  foox: word not found in dictionary.
  
  Word too long.
  </code></pre>
  
  <p>What is the problem and how can I fix it?</p>
  
  <p>Thank you.</p>