head.t (419B)
- #!/usr/bin/env cram
- # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- # SPDX-License-Identifier: MPL-2.0
- $ export PATH="$TESTDIR/../cmd:$PATH"
- $ test "$(command -v head)" = "$TESTDIR/../cmd/head"
- $ set -o pipefail
- $ </dev/zero head -c 40 | wc -c
- 40
- $ </dev/zero head -c 40K | wc -c
- 40960
- $ </dev/zero head -c 40d | wc -c
- head: Unrecognised unit 'd'
- 0
- [1]