From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28291 invoked by alias); 1 Apr 2014 21:22:51 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32514 Received: (qmail 21439 invoked from network); 1 Apr 2014 21:22:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, T_FILL_THIS_FORM_SHORT,T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=68Zc/BCMVhMnpEZVuE6dloJVeMbLxMDfJL/9Mn4xwCk=; b=zHXUlcgOYbdL300knNZzBFxfSy1DXaB3xfexpgzKxyCkxLUm2I6yCjICo3ELuJfoIn BVgdamVvcxlAzv2lcxcEDQfLkKYIj6IILv1myvqd4FIwII8Y243ghxkRF+TR+9715m5K c3ug0yf/5Zvb0yJ+d+V4odnw5KZpwWN7osM/kTYOCaSpS6iiZONzOtvboERWq8lZiD3U jSWjVjD5YFvtA3gisZyQi05DAE0sDw6BgzecSrpUU6K27ta7Oxy9X3GIj+0f1La8x906 G6QIusVuRFjQwrvsWgTg0TCLkRoMLgXNzQJlLVbtjI5wq3rUu8qbKB6tA3vjVL6xhQ42 3ntw== X-Received: by 10.60.62.178 with SMTP id z18mr3543650oer.61.1396387362458; Tue, 01 Apr 2014 14:22:42 -0700 (PDT) Date: Tue, 1 Apr 2014 16:22:39 -0500 From: Erik Johnson To: zsh-workers@zsh.org Subject: LOGNAME not properly set on FreeBSD Message-ID: <20140401212239.GE20508@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cYtjc4pxslFTELvY" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) --cYtjc4pxslFTELvY Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable When using "su - username" to change users, zsh is not properly setting the LOGNAME environment variable on FreeBSD. Example below. erik@virtubsd:~% zsh --version zsh 5.0.2 (amd64-portbld-freebsd9.1) erik@virtubsd:~% su - root Password: virtubsd# echo $LOGNAME erik virtubsd# cat .zshrc cat: .zshrc: No such file or directory virtubsd# logout erik@virtubsd:~% sudo chpass -s /bin/csh root Password: chpass: user information updated erik@virtubsd:~% su - root Password: virtubsd# echo $LOGNAME root virtubsd# logout --=20 -Erik "For me, it is far better to grasp the universe as it really is than to persist in delusion, however satisfying and reassuring." --Carl Sagan --cYtjc4pxslFTELvY Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlM7Lh8ACgkQXlWDxDeAjz8wcgCaA6w9SO6NXJqdRp/tFVpSwioO t5cAnRxMboRwFHrCBfyn5srL5ZT8mXEG =G0Kk -----END PGP SIGNATURE----- --cYtjc4pxslFTELvY--