sleep.t (392B)
- #!/usr/bin/env cram
- # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- # SPDX-License-Identifier: MPL-2.0
- $ cd $TESTDIR/../cmd
- $ ./sleep
- sleep: Got a total duration of 0
- [1]
- $ ./sleep -f
- strtodur: (Error: Not a number: -f|Error with sscanf: Invalid argument) (re)
- [1]
- $ ./sleep 0
- sleep: Got a total duration of 0
- [1]
- $ ./sleep 1