HOW do you tell KSH is interactive ?
Gene Spafford
spaf at cs.purdue.EDU
Mon Feb 18 19:01:40 AEST 1991
If you only want to do something if you are interactive, then put the
following at the appropriate places in your $ENV file:
if [[ $- = *i* ]]
then
do stuff for interactive here
fi
--
Gene Spafford
NSF/Purdue/U of Florida Software Engineering Research Center,
Dept. of Computer Sciences, Purdue University, W. Lafayette IN 47907-2004
Internet: spaf at cs.purdue.edu phone: (317) 494-7825
More information about the Comp.unix.shell
mailing list