Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!bellcore!porthos!pyuxe!nvuxl!hsong From: hsong@nvuxl.UUCP (g hugh song) Newsgroups: comp.unix.questions Subject: How to skip .env during noninteractive shell startup in sh/ksh? Keywords: Ksh, .env Message-ID: <783@nvuxl.UUCP> Date: 15 Jan 91 14:15:21 GMT Distribution: na Organization: Bellcore, Livingston, NJ Lines: 13 In Csh, noninteractive shell startup skips .cshrc when we put if (! #?prompt) exit on top of ".cshrc" file. I was looking for the same script in Ksh which does the same thing for ".env" file. However, in ksh, $PS1 is always defined no matter what the shell is interactive or not. Is there any way to achieve the goal with a short script on top of ".env"? Thanks. Please email. -hsong- nvuxl!hsong@bellcore.bellcore.com Cc. to: hsong%nvuxl@bellcore.bellcore.com