From owner-freebsd-questions@FreeBSD.ORG Mon Jan 29 23:06:58 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 17ED816A402 for ; Mon, 29 Jan 2007 23:06:58 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (dsl081-227-250.chi1.dsl.speakeasy.net [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id B471613C4A6 for ; Mon, 29 Jan 2007 23:06:55 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.13.8/8.12.11) with ESMTP id l0TN6CUH075748; Mon, 29 Jan 2007 17:06:12 -0600 (CST) Message-Id: <6.0.0.22.2.20070129170438.0249d7f0@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Mon, 29 Jan 2007 17:06:01 -0600 To: David Benfell , freebsd-questions@freebsd.org From: Derek Ragona In-Reply-To: <20070129223730.GA7986@parts-unknown.org> References: <20070129223730.GA7986@parts-unknown.org> Mime-Version: 1.0 X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: stupid scripting question: zsh X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jan 2007 23:06:58 -0000 The problem is likely the that you don't have the full path to stty in your script, and the automated jobs don't have a proper path set yet. Use the full pathname in your script and see if that works. -Derek At 04:37 PM 1/29/2007, David Benfell wrote: >Hello all, > >I've been upgrading my FreeBSD system into a fully-fledged desktop >system. > >zsh as installed (from the port) seems only to recognize the /etc/zshenv >startup file. And I needed an stty command to get proper backspace/delete >behavior. Because only the /etc/zshenv file seemed to be recognized, >I had to put the stty command in it. > >The stty command works fine, but unsurprisingly produces an error in my >automated jobs that ssh into the system. So I tried: > >if [ ${TERM} ] >then > stty erase "^?" >fi > >That didn't work, so I tried: > >if [ -n ${TERM} ] >then > stty erase "^?" >fi > >Someone who actually knows what they're doing will, I'm sure, instantly >recognize the problem with this. I'm pretty sure TERM is indeed the >variable I should be testing, but that I'm not testing it in the right >way. > >What is the magic way? > >-- >David Benfell, LCP >benfell@parts-unknown.org >--- >Resume available at http://www.parts-unknown.org/ >NOTE: I sign all messages with GnuPG (0DD1D1E3). -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support.