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

  1. Path: sparky!uunet!mcsun!uknet!axion!spuddy!sweh
  2. From: sweh@spuddy.uucp (Stephen Harris)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: KSH: how to stop $ENV
  5. Message-ID: <1992Sep12.101832.1513@spuddy.uucp>
  6. Date: 12 Sep 92 10:18:32 GMT
  7. References: <1992Sep11.132901.26395@bnr.ca>
  8. Organization: Spuddy's Public Usenet Domain
  9. Lines: 15
  10.  
  11. In article <1992Sep11.132901.26395@bnr.ca> space%bnr.ca (Scott Pace) writes:
  12. >I have a shell script written in ksh (i.e. has #! /bin/ksh at the start).
  13. >How do I prevent the ksh from executing $ENV?  This is on HP-UX 7.05.  I
  14.  
  15. You need to run in priviledged modee (or is it protected mode?  Never can
  16. remember).
  17. Anyway, #!/bin/ksh -p
  18. will do the job.
  19.  
  20. If a ksh script is suid, then the -p should be applied automatically.
  21. -- 
  22.                                Stephen Harris
  23.                sweh@spuddy.uucp    ...!uknet!axion!spuddy!sweh
  24.  
  25.  * Meeeeow ! Call Spud the Cat on > +44 203 638780 < for free Usenet access *
  26.