| 1 | #! /bin/sh
|
|---|
| 2 | ## --------------------- ##
|
|---|
| 3 | ## M4sh Initialization. ##
|
|---|
| 4 | ## --------------------- ##
|
|---|
| 5 |
|
|---|
| 6 | # Be more Bourne compatible
|
|---|
| 7 | DUALCASE=1; export DUALCASE # for MKS sh
|
|---|
| 8 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
|---|
| 9 | emulate sh
|
|---|
| 10 | NULLCMD=:
|
|---|
| 11 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
|---|
| 12 | # is contrary to our usage. Disable this feature.
|
|---|
| 13 | alias -g '${1+"$@"}'='"$@"'
|
|---|
| 14 | setopt NO_GLOB_SUBST
|
|---|
| 15 | else
|
|---|
| 16 | case `(set -o) 2>/dev/null` in
|
|---|
| 17 | *posix*) set -o posix ;;
|
|---|
| 18 | esac
|
|---|
| 19 |
|
|---|
| 20 | fi
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 | # PATH needs CR
|
|---|
|
|---|