Path: utzoo!utgpu!water!watmath!clyde!rutgers!gatech!ulysses!hector!ekrell From: ekrell@hector.UUCP (Eduardo Krell) Newsgroups: comp.unix.questions Subject: Re: KSH questions Keywords: korn shell, ksh, ENV, meta-expands Message-ID: <10072@ulysses.homer.nj.att.com> Date: 14 Feb 88 22:36:16 GMT References: <437@n8emr.UUCP> Sender: netnews@ulysses.homer.nj.att.com Reply-To: ekrell@hector (Eduardo Krell) Organization: AT&T Bell Labs, Murray Hill Lines: 19 In article <437@n8emr.UUCP> lwv@n8emr.UUCP (Larry W. Virden) writes: > >The first question is a 'technique' question. I would like to have a series >of aliases, etc initialized for each interactive shell that I invoke (whether >it is under a terminal, pseudo terminal, etc.). I would like to have a SUBSET >of these aliases in effect for each korn shell command that I execute. The ksh variable $- contains all the flags supplied to the shell when it was invoked or by using the set command. All interactives shell have the -i flag set, so you can put in your ENV file: case $- in *i*) ... stuff for interactive shells ... esac Eduardo Krell AT&T Bell Laboratories, Murray Hill, NJ UUCP: {ihnp4,ucbvax}!ulysses!ekrell ARPA: ekrell@ulysses.att.com