File: example.debug_env

package info (click to toggle)
shellia 5.10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 792 kB
  • sloc: sh: 7,840; makefile: 34
file content (20 lines) | stat: -rwxr-xr-x 602 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# vim: set filetype=sh :
#        file: example.debug_env
#   copyright: Bernd Schumacher <bernd.schumacher@hpe.com> (2007-2020)
#     license: GNU General Public License, version 3
# description: example using environment to define debug
#     warning: do not use this as an example, because iashell is not designed
#              for small functions. To learn more please read shellia(7)
#    see also: test.debug_env
set -e
set -u

# this example is just to test some features of ia
# but ia should not be used in that way in real scripts

. ./ia

eval "$ia_init"
ia_add "dbg hello"
ia -c