File: example.col_regex

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 (19 lines) | stat: -rwxr-xr-x 609 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
#!/bin/sh
# vim: set filetype=sh :
#        file: example.col_regex
#   copyright: Bernd Schumacher <bernd.schumacher@hpe.com> (2007-2020)
#     license: GNU General Public License, version 3
# description: script shows, that color-control-codes can be ignored
#              in ia_stdout
#     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.col_regex
set -e
set -u

. ./ia

eval "$ia_init"
ia_stdout "^the number is 42\.$"
ia_add "echo \"the number is ${ia_green}42${ia_no_color}.\""
ia -c