# gauche scheme environment variables # see also ~/.gaucherc execp gauche || return # Warn if ‘#’ is used in the test expression of branch. In boolean # context, ‘#’ counts true. It is also often the case that a procedure # returns ‘#’ when the return value doesn’t matter, and you shouldn’t # rely on the value that is supposed not to matter–the procedure may change the # return value in future (which should be ok, since the value shouldn’t have # mattered), which can cause unintentional and hard-to-track bugs. *Note # Undefined values::, for the details. We strongly recommend users to turn on # this warning. In future, we plan to make this default. GAUCHE_CHECK_UNDEFINED_TEST=1 export GAUCHE_CHECK_UNDEFINED_TEST # This is used by ‘gauche.interactive’ module to enable line-editor on REPL # prompt. *Note Interactive development::, for the details. GAUCHE_READ_EDIT=1 export GAUCHE_READ_EDIT # If Gauche is invoked with ‘GAUCHE_READ_EDIT’ enabled (see below), the REPL # history is kept in ‘~/.gosh_history’ by default. This environment variable # overrides the history file. To prohibit saving history, set an empty string # to this variable. If the process is suid/sgid-ed, history won’t be saved. GAUCHE_HISTORY_FILE="${XDG_DATA_HOME:-$LOCAL_PREFIX/share}/gauche/gosh_history" mkdir -p "${GAUCHE_HISTORY_FILE%/*}" export GAUCHE_HISTORY_FILE