logo

utils-std

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

echo.sh (413B)


  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/echo"
  5. plans=7
  6. . "$(dirname "$0")/tap.sh"
  7. t 'empty' '' '
  8. '
  9. t 'hello' 'hello' 'hello
  10. '
  11. t '-- hello' '-- hello' '-- hello
  12. '
  13. t -- '-n' '-n' ''
  14. t -- '-n foo' '-n foo' 'foo'
  15. t -- '-n foo bar' '-n foo bar' 'foo bar'
  16. t -- '-n -- foo' '-n -- foo' '-- foo'