logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git

sleep.t (403B)


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