fork(1) download
  1. #!/bin/bash
  2.  
  3. bash_link=`which bash`
  4. echo `ls -l $bash_link`
  5.  
  6. if [ -e "$bash_link" -a ! -L "$bash_link" ]
  7. then
  8. echo "enters if"
  9. else
  10. echo "enters else"
  11. fi
Success #stdin #stdout 0.05s 5268KB
stdin
Standard input is empty
stdout
-r-xr-xr-x 1 nobody nobody 760844 2009-12-14 18:27 /bin/bash
enters if