home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!convex!news.utdallas.edu!corpgate!bnrgate!bcars267!space
- From: space%bnr.ca (Scott Pace)
- Subject: Re: KSH: how to stop $ENV
- Message-ID: <1992Sep11.175318.3198@bnr.ca>
- Sender: news@bnr.ca (usenet)
- Nntp-Posting-Host: bcarh2b1
- Organization: Bell-Northern Research, Ottawa, Canada
- X-Newsreader: Tin 1.1 PL5
- References: <1992Sep11.171131.29549@u.washington.edu>
- Date: Fri, 11 Sep 1992 17:53:18 GMT
- Lines: 22
-
- Donn Cave (donn@carson.u.washington.edu) wrote:
- : space%bnr.ca (Scott Pace) writes:
- :
- : | I have a shell script written in ksh (i.e. has #! /bin/ksh at the start).
- : | How do I prevent the ksh from executing $ENV? This is on HP-UX 7.05. I
- : | have read the man page, and I don't see any switches that would do this.
- : | What I really want is the equivalent of the -f switch in the csh.
- :
- : #!/bin/ksh -p
- :
- : But, don't be surprised if it doesn't work! It works on some Korn shells,
- : not others. It's generally not documented, may be obsolete. I'd like to
- : know - I think it's a valuable feature. (It's not the same as expecting your
- : users to use the bizarre interactive-only formula for ENV.)
- :
-
- But I can't use -p since it clobbers the $PATH variable, and I need that to
- be kept intact.
-
- --
- Scott Pace, Bell Northern Research, Ottawa, Canada, (613) 765-2631
- space@bnr.ca - the final frontier DoD# 850 - KotBTT, KotBP, KotIQ
-