home *** CD-ROM | disk | FTP | other *** search
- 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
- From: donn@carson.u.washington.edu (Donn Cave)
- Newsgroups: comp.unix.shell
- Subject: Re: KSH: how to stop $ENV
- Message-ID: <1992Sep14.161329.28244@u.washington.edu>
- Date: 14 Sep 92 16:13:29 GMT
- References: <1992Sep11.171131.29549@u.washington.edu> <1992Sep11.175318.3198@bnr.ca>
- Sender: news@u.washington.edu (USENET News System)
- Organization: University of Washington
- Lines: 27
-
- space%bnr.ca (Scott Pace) writes:
-
- >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 I can't use -p since it clobbers the $PATH variable, and I need that to
- >be kept intact.
-
- It doesn't do anything to PATH, for me. Of course that's without setuid
- (does anyone write setuid shell scripts anymore?), and without the
- /etc/suid_profile mentioned in another posting (I don't believe I have
- any documentation for that, either.)
-
- So, does anyone want to comment on whether the "-p" flag is reliably
- available, or only in certain versions, or only at the discretion of
- the vendor?
-
- Donn Cave, University Computing Services, University of Washington
- donn@cac.washington.edu
-