Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Man page, minor error.
- X-seq: zsh-users 2127
- From: Thomas Köhler <jean-luc@xxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: Man page, minor error.
- Date: Tue, 9 Feb 1999 07:51:14 +0100
- In-reply-to: <199902082329.SAA11140@xxxxxxxxxxxxxxxxxx>; from Larry P . Schrof on Mon, Feb 08, 1999 at 05:28:27PM -0600
- Mail-followup-to: zsh-users@xxxxxxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <199902082329.SAA11140@xxxxxxxxxxxxxxxxxx>
Larry P . Schrof <schrof@xxxxxxxxxxx> wrote:
> I noticed what may be a minor error in the zshmisc man page that came
> with 3.1.5
>
> Under the section 'PROMPT EXPANSION', it states that %n in a prompt
> string will expand to whatever is in $USERNAME. It actually does not
> seem to. Instead, it seems to expand to whatever is in $LOGNAME. I
> noticed the difference when I su'd to root, but %n still expanded to
> 'schrof' when, according to the manpage, it should have expanded to
> 'root'.
>
> -----
> [schrof]> echo $LOGNAME $USERNAME
> schrof schrof
> [became root with su here]
> [schrof]> echo $LOGNAME $USERNAME
> schrof root
> -----
Still using zsh-3.1.4, this behaviour isn't there:
jean-luc@picard ~> echo $LOGNAME $USERNAME
jean-luc jean-luc
[su to root]
root@picard /home/jean-luc> echo $LOGNAME $USERNAME
jean-luc root
This is a Linux box (Linux 2.0.35, glibc)
> I haven't had a chance to check this on other platforms besides a Solaris
> 2.6 box. Can someone confirm this behavior on their machine for me?
>
> What %n should expand to is not quite my concern. I just noticed a
> possible error in the man page and wanted to ask the general zsh user
> population if I'm crazy or not. :)
Perhaps this hast changed in zsh-3.1.5 and someone forgot to update the
documentation :)
> Regards,
>
> - Larry
CU,
Thomas
--
Thomas Köhler Email: jean-luc@xxxxxxxxxxxxxxxxx
<>< WWW: http://home.pages.de/~jeanluc/
IRC: jeanluc
LCARS --- Linux for Computers on All Real Starships
Messages sorted by:
Reverse Date,
Date,
Thread,
Author