logo

utils-std

Collection of commonly available Unix tools

sleep.t (392B)


  1. #!/usr/bin/env cram
  2. # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. # SPDX-License-Identifier: MPL-2.0
  4. $ cd $TESTDIR/../cmd
  5. $ ./sleep
  6. sleep: Got a total duration of 0
  7. [1]
  8. $ ./sleep -f
  9. strtodur: (Error: Not a number: -f|Error with sscanf: Invalid argument) (re)
  10. [1]
  11. $ ./sleep 0
  12. sleep: Got a total duration of 0
  13. [1]
  14. $ ./sleep 1