bug-bash
[Top][All Lists]
Advanced

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

su - doesn't source .profile


From: dalgoda
Subject: su - doesn't source .profile
Date: Tue, 31 Oct 2000 13:53:50 -0600

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64  -I.  -I. 
-I./include -I./lib -I/usr/include -g -O2
uname output: Linux thune 2.2.17raid #4 Wed Sep 6 13:56:49 CDT 2000 i586 unknown
Machine Type: i386-pc-linux-gnu

Bash Version: 2.04
Patch Level: 0
Release Status: release

Description:
su - user -c 'echo foo' does not source .profile.

Repeat-By:

~user with "echo profile" in .profile

su - user -c 'echo foo'

Should result in:
profile
foo

This may have something to do with the fact that GNU su does not use the
"-su" mechanism. (see shell.c:918-928 for bash 2.04)

Fix:
        [Description of how to fix the problem.  If you don't know a
        fix for the problem, don't include this section.]



reply via email to

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