bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no subject)


From: Yves Crespin
Subject: (no subject)
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?

Thanks

        Yves Crespin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]