summary refs log tree commit diff
path: root/src/libexecline/el_getstrict.c
blob: 50127be5a49c7d940299cf1cab80be2746f1482f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ISC license. */

#include <skalibs/env.h>
#include <skalibs/types.h>
#include <execline/execline.h>

unsigned int el_getstrict (void)
{
  static unsigned int strict = 0 ;
  static int first = 1 ;
  if (first)
  {
    char const *x = env_get("EXECLINE_STRICT") ;
    first = 0 ;
    if (x) uint0_scan(x, &strict) ;
  }
  return strict ;
}