#!/bin/dash
#        file: hello_world_error
#   copyright: Bernd Schumacher <bernd.schumacher@hpe.com> (2007-2020)
#     license: GNU General Public License, version 3
# description: example "hello world" script to demonstrate check -c and -C
#              see shellia(3) for using this example
#     warning: normally it makes
#     warning: Be aware that the interactive step size in this example is only
#              reasonable to summanrized demonstrate shellia features.
#              Read shellia(7) NOTES, to learn about a reasonable size of
#              interactive steps.
#       usage: ./hello_world_error [-i|-s|-m] [--] [<name>]

# we prefer a local copy of ia, if it exists
[ -f ia ] && . ./ia || . /usr/share/shellia/ia

# say_hello <name>
say_hello()
{
  echo "hello $1"
  echo "end of function say_hello" >&2
  return 5
}

eval "$ia_init"
ia_add "say_hello \"$1\""
ia -C
