home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / shell / 3944 < prev    next >
Encoding:
Internet Message Format  |  1992-09-14  |  1.5 KB

  1. Path: sparky!uunet!sun-barr!olivea!spool.mu.edu!sdd.hp.com!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!carson.u.washington.edu!donn
  2. From: donn@carson.u.washington.edu (Donn Cave)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: KSH: how to stop $ENV
  5. Message-ID: <1992Sep14.161329.28244@u.washington.edu>
  6. Date: 14 Sep 92 16:13:29 GMT
  7. References: <1992Sep11.171131.29549@u.washington.edu> <1992Sep11.175318.3198@bnr.ca>
  8. Sender: news@u.washington.edu (USENET News System)
  9. Organization: University of Washington
  10. Lines: 27
  11.  
  12. space%bnr.ca (Scott Pace) writes:
  13.  
  14. >Donn Cave (donn@carson.u.washington.edu) wrote:
  15. >: space%bnr.ca (Scott Pace) writes:
  16. >: 
  17. >: | I have a shell script written in ksh (i.e. has #! /bin/ksh at the start).
  18. >: | How do I prevent the ksh from executing $ENV?  This is on HP-UX 7.05.  I
  19. >: | have read the man page, and I don't see any switches that would do this.
  20. >: | What I really want is the equivalent of the -f switch in the csh.
  21. >: 
  22. >: #!/bin/ksh -p
  23.  
  24.  
  25. >But I can't use -p since it clobbers the $PATH variable, and I need that to
  26. >be kept intact.
  27.  
  28. It doesn't do anything to PATH, for me.  Of course that's without setuid
  29. (does anyone write setuid shell scripts anymore?), and without the
  30. /etc/suid_profile mentioned in another posting (I don't believe I have
  31. any documentation for that, either.)
  32.  
  33. So, does anyone want to comment on whether the "-p" flag is reliably
  34. available, or only in certain versions, or only at the discretion of
  35. the vendor?
  36.  
  37.     Donn Cave, University Computing Services, University of Washington
  38.     donn@cac.washington.edu
  39.