KSH and Layers
Thaddeus P. Floryan
thad at public.BTR.COM
Wed Feb 27 01:17:56 AEST 1991
In article <1789 at svin02.info.win.tue.nl> debra at info.win.tue.nl writes:
>Put the following line in your .profile, assuming ksh is in /bin:
>SHELL=/bin/ksh; export SHELL
>
>That'll do the trick.
True! But even faster, per the "optimization" tricks in "The KORN Shell",
would be:
export SHELL=/bin/ksh
which can also be stated:
set -a
SHELL=/bin/ksh
In the first example, other env vars can be set in the same "line." In the
second example, the "set -a" (where "a" = allexport) means all vars set will
be automatically exported.
I strongly urge people to acquire a copy of "The KORN Shell" which is THE
definitive reference work regarding ksh (besides which it contains numerous
"tricks" and addresses efficiency issues).
Thad Floryan [ thad at btr.com (OR) {decwrl, mips, fernwood}!btr!thad ]
More information about the Comp.sys.att
mailing list