topical media & game development

talk show tell print

basic-shell-03-find-shells2.sh / sh



  
  echo "Checking your command path for shells..."
  
  for check_for in sh bash ksh csh tcsh zsh ash 
  do
      cmd="check_for -c exit"
  
      if (cmd > /dev/null 2> /dev/null) then
         echo "check_for found."
      else
          echo "check_for NOT found."
      fi
  done
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.