Re: "\u" expansion in PS1 doesn't work for users sharing same UID
From:
Chet Ramey
Subject:
Re: "\u" expansion in PS1 doesn't work for users sharing same UID
Date:
Wed, 2 Jan 2002 17:13:53 -0500
> 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.
Two users with the same uid is inherently unreliable. If you want to
use $USER, you can put $USER into $PS1.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/
[Prev in Thread]
Current Thread
[Next in Thread]
Re: "\u" expansion in PS1 doesn't work for users sharing same UID,
Chet Ramey<=