logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git

printf.sh (311B)


  1. #!/bin/sh
  2. # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. # SPDX-License-Identifier: MPL-2.0
  4. target="$(dirname "$0")/../cmd/printf"
  5. plans=4
  6. . "$(dirname "$0")/tap.sh"
  7. t esc '\b\t\n' '
  8. '
  9. t octal '\041' '!'
  10. t hex '\x7B\x7d' '{}'
  11. t repeat_fmt '%s\n foo bar' 'foo
  12. bar
  13. '