home *** CD-ROM | disk | FTP | other *** search
- From: wolf@hp-ptp.ptp.hp.com (Paul Wolf)
- Date: Sat, 12 Sep 1992 00:33:38 GMT
- Subject: Re: KSH: how to stop $ENV
- Message-ID: <12510003@hp-ptp.ptp.hp.com>
- Organization: HP Pacific Technology Park - Sunnyvale, Ca.
- Path: sparky!uunet!spool.mu.edu!sdd.hp.com!scd.hp.com!hplextra!hpcc05!hp-ptp!wolf
- Newsgroups: comp.unix.shell
- References: <1992Sep11.132901.26395@bnr.ca>
- Lines: 23
-
-
- Scott Pace of Bell Northern Research 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.
- >
- > Thanks.
-
- How about -
- $ ENV= ksh script-file
-
- which will modify the variable ENV before executing the script in a
- subshell.
-
- This is equivalent to -
-
- $ (export ENV; ENV= ksh script-file)
-
- -----
- Paul Wolf, wolf@hpams0h.ptp.hp.com
- Hewlett Packard, Integrated Systems Division, 1266 Kifer Rd, Sunnyvale, CA
-