home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sdd.hp.com!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!sumax!thebes!camco!Celestial.COM!bill
- From: bill@Celestial.COM (Bill Campbell)
- Newsgroups: comp.unix.shell
- Subject: Re: KSH: how to stop $ENV
- Message-ID: <1992Sep12.165947.5450@Celestial.COM>
- Date: 12 Sep 92 16:59:47 GMT
- References: <1992Sep11.132901.26395@bnr.ca> <1992Sep11.171131.29549@u.washington.edu>
- Organization: Celestial Software, Mercer Island, WA
- Lines: 34
-
- In <1992Sep11.171131.29549@u.washington.edu> donn@carson.u.washington.edu (Donn Cave) writes:
-
- :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.)
-
- : doesn't work on
- : (DYNIX/ptx 1.3) Version 11/16/88e
-
- : does work on
- : (DYNIX 3.1) Version 11/16/88d
- : (Ultrix 4.2a) Version 11/16/88
- : (AIX 3.2) Version 11/16/88d SBCS
-
- Add SCO Xenix 2.3.4 and UNIX 3.2v4 to the list it works on. Of
- course the #! /bin/ksh header doesn't work on Xenix, but the -p
- option does :-).
-
- Bill
- --
- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software
- UUCP: ...!thebes!camco!bill 6641 East Mercer Way
- uunet!camco!bill Mercer Island, WA 98040; (206) 947-5591
- SPEED COSTS MONEY -- HOW FAST DO YOU WANT TO GO?
-