Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!husc6!cmcl2!phri!marob!daveh From: daveh@marob.MASA.COM (Dave Hammond) Newsgroups: comp.unix.xenix Subject: Re: Changing the environment in sh Keywords: sh export shell Message-ID: <398@marob.MASA.COM> Date: 3 Sep 88 21:45:02 GMT References: <59@csnz.nz> Reply-To: daveh@marob.masa.com (Dave Hammond) Organization: ESCC New York City Lines: 19 In article <59@csnz.nz> paul@csnz.UUCP (Paul Gillingwater) writes: >I've Read The FM's, but I must be a bit dim - how do I change an >environment variable, e.g. PATH, using a /bin/sh script, and have >those changes effective in my login shell? Instead of having the shell execute the script, as in $ sh script (or) $ script # assuming script is chmod +x have the shell evaluate, or source the script: $ . script # `dot script' Dave Hammond UUCP: {uunet|...}!marob.masa.com!!daveh DOMAIN: daveh@marob.masa.com ------------------------------------------------------------------------------