From: "Larry P . Schrof" <schrof@cig.mot.com>
To: zsh-users@sunsite.auc.dk
Subject: Man page, minor error.
Date: Mon, 8 Feb 1999 17:28:27 -0600 [thread overview]
Message-ID: <199902082329.SAA11140@po_box.cig.mot.com> (raw)
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
-----
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. :)
Regards,
- Larry
next reply other threads:[~1999-02-08 23:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-08 23:28 Larry P . Schrof [this message]
1999-02-09 6:51 ` Thomas Köhler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199902082329.SAA11140@po_box.cig.mot.com \
--to=schrof@cig.mot.com \
--cc=zsh-users@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).