fork download
  1. #!/bin/bash
  2. while true/1
  3. do
  4. read line
  5. if [ $line -eq 42 ]
  6. then
  7. exit 0
  8. fi
  9. echo $line
  10. done
Success #stdin #stdout #stderr 0.01s 5288KB
stdin
1
2
10
42
11
stdout
Standard output is empty
stderr
./prog.sh: line 2: true/1: No such file or directory