logo

utils-std

Collection of commonly available Unix tools

yes (283B)


  1. #!/bin/sh
  2. # utils-std: Collection of commonly available Unix tools
  3. # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  4. # SPDX-License-Identifier: MPL-2.0
  5. die() {
  6. echo "yes: $@" >&2
  7. exit 1
  8. }
  9. while :; do
  10. echo "${@:-y}" || die "Write error"
  11. done