home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / shell / 3908 < prev    next >
Encoding:
Text File  |  1992-09-11  |  1.4 KB  |  36 lines

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