bug-bash
[Top][All Lists]
Advanced

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

"\u" expansion in PS1 doesn't work for users sharing same UID


From: agenkin
Subject: "\u" expansion in PS1 doesn't work for users sharing same UID
Date: Sat, 29 Dec 2001 19:40:37 -0500
User-agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.4 (Common Lisp, i686-pc-linux)

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: freebsd4.4
Compiler: cc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='fre\
ebsd4.4' -DCONF_MACHTYPE='i386-unknown-freebsd4.4' -DCONF_VENDOR='unknown' -DSH\
ELL  -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib -O2 -pipe -march=pentiumpro
uname output: FreeBSD soup.thpoon.com 4.4-STABLE FreeBSD 4.4-STABLE #0: Sat Oct\
 13 13:43:30 EDT 2001     address@hidden:/usr/obj/usr/src/sys/SOUP  i386
Machine Type: i386-unknown-freebsd4.4

Bash Version: 2.05a
Patch Level: 0
Release Status: release

Description:

User name in the PS1 variable, expanded from "\u", is (apparently)
generated from the users UID.  However, this does not work correctly
if you have two separate users with the same UID.

Repeat-By:

1. Create a UNIX user (e.g. `foo' with UID 1001).
2. Create another UNIX user with the same UID (e.g. `bar' with UID 1001).
3. Log in as user `bar'.

Now USER environment variable is set to `bar' (correctly), but "\u" in
PS1 variable is expanded to `foo' (incorrectly).

Many thanks,
-- 
Arcady Genkin



reply via email to

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