From owner-freebsd-stable@freebsd.org Mon Nov 23 00:40:37 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1A86FA35C2F for ; Mon, 23 Nov 2015 00:40:37 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D8A581B10 for ; Mon, 23 Nov 2015 00:40:36 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=nllL5TGl4jHOoz2OQNFQB9/rjP70vCF1qJqFlWrxDVg=; b=RBmSwqtB9YcIJ6W1tspD+pXvQk J6mW3icnEUrNyC7RssmZtoqqkYK5Ubh+ZgsNToW02vKsaUzkbs+0saFNN/4oAyiZE4/mGPoGUTkTA UfeyfihHt0SfJbu7LUGqN9QDBMaZ34ZNUKWyK6CS5QXdcu7aReGvQgg4mjpmFk/btz0M=; Received: from [114.121.132.108] (port=25102 helo=X220.alogt.com) by sl-508-2.slc.westdc.net with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.86) (envelope-from ) id 1a0e6F-003GUE-3x; Sun, 22 Nov 2015 16:31:15 -0700 Date: Mon, 23 Nov 2015 07:31:07 +0800 From: Erich Dollansky To: Miroslav Lachman <000.fbsd@quip.cz> Cc: "Michael B. Eichorn" , freebsd-stable Stable Subject: Re: su on 10.2: TERM: Undefined variable Message-ID: <20151123073107.49bca531@X220.alogt.com> In-Reply-To: <5651BD59.8070203@quip.cz> References: <5650642B.5030707@quip.cz> <1448138525.10590.18.camel@michaeleichorn.com> <5651A102.8050106@quip.cz> <5651BD59.8070203@quip.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Authenticated-Sender: sl-508-2.slc.westdc.net: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Nov 2015 00:40:37 -0000 Hi, On Sun, 22 Nov 2015 14:04:25 +0100 Miroslav Lachman <000.fbsd@quip.cz> wrote: > > > > Miroslav Lachman > > The only workaround I found is adding > export TERM="" > at the top of the script. > this is a bit strange. TERM should be always define to tell the applications the capabilities of your terminal. When X is running, it is normally set to xterm, if nothing is available - or you do not know what is available - set it to vt100. Of course, the best would be to find out why it is not set on your machine. Erich