Funny item in "set"
Carl Lowenstein
cdl at proxima.ucsd.edu
Tue Mar 21 16:52:54 PST 2000
> Date: Tue, 21 Mar 2000 15:58:09 -0800
> From: John Oliver <joliver at oliver.escondido.ca.us>
> To: kplug-list at kernel-panic.org
> Subject: Funny item in "set"
>
> Whenever I check my environment variables on this machine, at the very
> end I get:
>
> mc=()
> {
> mkdir -p ~/.mc/tmp 2>/dev/null;
> chmod 700 ~/.mc/tmp;
> MC=~/.mc/tmp/mc-$$;
> /usr/bin/mc -P "$@" >"$MC";
> cd "`cat $MC`";
> rm -i -f "$MC";
> unset MC
> }
> screen=()
> {
> if [ -z "$SCREENDIR" ]; then
> export SCREENDIR=$HOME/tmp;
> fi;
> /usr/bin/screen $@
> }
>
Those are shell functions. (BASH, that is).
They are given to you by the sytem-wide profile scripts contained in
/etc/profile.d.
The preceding advice may be RedHat specific, I don't know for sure.
carl
More information about the KPLUG-List
mailing list