| #!/bin/bash |
| |
| |
| t_Log "$0 - Test yes command" |
| |
| |
| touch /var/tmp/test-yes-123 |
| touch /var/tmp/test-yes-456 |
| |
| |
| yes | rm -i /var/tmp/test-yes-* || exit 1 |
| |
| |
| deleted=1 |
| |
| test -f /var/tmp/test-yes-123 || test -f /var/tmp/test-yes-456 || deleted=0 |
| t_CheckExitStatus $deleted |