David,
Use the "source" command to process the script so that its variable-setting
side-effects occur in your shell. Otherwise those variable settings happen
in a sub-shell (and for exported variables, any processes it invokes). The
"source" command has a synonym: "."
% help source
source: so
I have very simple script that all it needs to do is export some
environment variables. I can't seem to get it to work. All it does is..
export PS2DEV=/usr/ps2dev
If I do this on the command line it works fine.. and if I place it in
/etc/profile it works also. I assume whats happenning is
At 10:20 PM 10/12/2002, David Ryan wrote:
>I have very simple script that all it needs to do is export some environment
>variables. I can't seem to get it to work. All it does is..
>
>export PS2DEV=/usr/ps2dev
>
>If I do this on the command line it works fine.. and if I place it in /etc/profi
David,
This is not a Cygwin bug, this is the way bash is supposed to work.
Try 'man bash3618g'. Also, searching the archives for 'bash
environment export' would have revealed some relevant messages.
Igor
On Sun, 13 Oct 2002, David Ryan wrote:
> I have very simple script that all it need
4 matches
Mail list logo