fork download
  1. #!/bin/bash
  2. read character
  3. if [ $character -eq "Y" ] || [ $character -eq "y" ]
  4. then
  5. echo "YES"
  6. if [ $character -eq "N" ] || [ $character -eq "n" ]
  7. then
  8. echo "NO"
  9. fi
Runtime error #stdin #stdout #stderr 0s 19616KB
stdin
n
stdout
Standard output is empty
stderr
./prog.sh: line 10: syntax error: unexpected end of file