[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re:
From: |
Brian J. Fox |
Subject: |
Re: |
Date: |
Thu, 07 Jun 2001 06:35:59 -0700 |
From: "Yves Crespin" <ycrespin@compuserve.com>
Date: Thu, 7 Jun 2001 14:41:58 +0200
$bash --version
GNU bash, version 2.03.0(1)-release (i386-slackware-linux-gnu)
Copyright 1998 Free Software Foundation, Inc.
$uname -a
Linux linux 2.2.13 #127 Thu Oct 21 13:13:20 CDT 1999 i686 unknown
I use a co-shell for loading user environment variables.
I use execve(
"/bin/bash",
{
"-bash",
NULL
},
{
"LOGNAME=user",
"HOME=/home/user",
"SHELL=/bin/bash",
"PATH=/usr/local/bin:/usr/bin:/bin",
NULL
}
)
I write "env\n" to the coprocess and I read co-process enviromnent
variables: PWD, HOSTNAME, MACHTYPE, LOGNAME, SHLVL, SHELL,
HOSTTYPE, OSTYPE, HOME, TERM, PATH, _ But environment variables
which are exported from /etc/profile and ~/.profile are not in the
co-process environment.
I check this programm on SCO (ksh) and HP (hp-ksh), it's work.
Is there something spécial to do with bash?
Try adding "-login" as the first argument to bash.
Brian
== The Difference Between Cultures: ==
Einigkeit und Recht und Freiheit
Liberte', E'galite', Fraternite'
Sex, drugs and rock'n'roll