From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19920 invoked from network); 19 Oct 2005 15:37:52 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 19 Oct 2005 15:37:52 -0000 Received: (qmail 31616 invoked from network); 19 Oct 2005 15:37:45 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 Oct 2005 15:37:45 -0000 Received: (qmail 19687 invoked by alias); 19 Oct 2005 15:37:37 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9526 Received: (qmail 19678 invoked from network); 19 Oct 2005 15:37:36 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 19 Oct 2005 15:37:36 -0000 Received: (qmail 30536 invoked from network); 19 Oct 2005 15:37:36 -0000 Received: from vms046pub.verizon.net (206.46.252.46) by a.mx.sunsite.dk with SMTP; 19 Oct 2005 15:37:35 -0000 Received: from candle.brasslantern.com ([71.116.81.225]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IOM00EMD601P6I1@vms046.mailsrvcs.net> for zsh-users@sunsite.dk; Wed, 19 Oct 2005 10:36:02 -0500 (CDT) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j9JFa1R9001350 for ; Wed, 19 Oct 2005 08:36:01 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j9JFa1GP001349 for zsh-users@sunsite.dk; Wed, 19 Oct 2005 08:36:01 -0700 Date: Wed, 19 Oct 2005 15:36:01 +0000 From: Bart Schaefer Subject: Re: How to "STTY" when "setopt nointeractive"? In-reply-to: <20051019072418.GA1012@DervishD> To: Zsh Users Message-id: <1051019153601.ZM1348@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <20051018191756.GA407@DervishD> <1051019014535.ZM32070@candle.brasslantern.com> <20051019072418.GA1012@DervishD> Comments: In reply to DervishD "Re: How to "STTY" when "setopt nointeractive"?" (Oct 19, 9:24am) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 On Oct 19, 9:24am, DervishD wrote: } } OK, that works. So STTY doesn't work if the shell is not } interactive, right? I don't understand why :? It's because scripts don't have ZLE to automatically reset the tty again after the change for that one command. The real intended usage of STTY is either to be typed at the prompt as a prefix to some command you know to need it, or to be included in aliases (which are expected only to be used interactively) in the same way.