openbsd-ports/editors/nvi-m17n/files/nvi-m17n
2000-02-23 04:36:39 +00:00

10 lines
328 B
Bash
Executable File

#! /bin/sh
EXINIT0="set ${CANNA_OPT} autodetect=${AUTODETECT} fileencoding=${ENCODING} displayencoding=${ENCODING} inputencoding=${ENCODING} noskipdisplay"
if [ -f ~/.exrc ]; then
EXINIT="$EXINIT0 `sed -e '/^set /!d' -e 's/^set //' < ~/.exrc | tr '\012' ' '`"
else
EXINIT=$EXINIT0
fi
export EXINIT
exec ${PREFIX}/bin/nvi "$@"