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