4 : check for shell magic #!
10 if /tmp/file$$ > /dev/null
11 then echo "#define SHELLMAGIC 1"
18 0) echo "#ifndef SHOPT_$1"
19 echo "# define SHOPT_$1 1"
22 *) echo "#undef SHOPT_$1"
27 ls /dev/fd/9 9<&0 >/dev/null 2>&1
30 case `echo a | tr a '\012' | wc -l` in
31 *1*) option MULTIBYTE 0 ;;
33 test -x /bin/pfexec -o -x /usr/bin/pfexec
35 /bin/test ! -l . 2> /dev/null
37 test -f /etc/ksh.kshrc -o -f /etc/bash.bashrc &&
39 test -f /bin/universe && univ=`/bin/universe` > /dev/null 2>&1 -a ucb = "$univ"
44 #if !_PACKAGE_ast && ( (MB_LEN_MAX-1)<=0 || !defined(_lib_mbtowc) )
45 # undef SHOPT_MULTIBYTE