home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!usenet.coe.montana.edu!news.u.washington.edu!carson.u.washington.edu!donn
- From: donn@carson.u.washington.edu (Donn Cave)
- Subject: Re: KSH: how to stop $ENV
- Message-ID: <1992Sep11.171131.29549@u.washington.edu>
- Sender: news@u.washington.edu (USENET News System)
- Organization: University of Washington
- References: <1992Sep11.132901.26395@bnr.ca>
- Date: Fri, 11 Sep 1992 17:11:31 GMT
- Lines: 32
-
- 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
-
- It could be a build option. For another example, of the Korn shells listed
- above, two recognize {} as a globbing expression, as in csh. (E.g.,
- "ls *.{csh,ksh}".) The other two don't, and I am under the impression that
- it's up to the vendor (Sequent seems to think it's worthwhile, IBM and DEC
- don't.) (I don't understand why these options are presented, since it seems
- to just offer an opportunity for gratuitous incompatibilities between the
- same version of the Korn shell on different platforms.)
-
- Donn Cave, University Computing Services, University of Washington
- donn@cac.washington.edu
-