From owner-freebsd-current Fri Apr 17 18:30:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA02745 for freebsd-current-outgoing; Fri, 17 Apr 1998 18:30:00 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA02734 for ; Sat, 18 Apr 1998 01:29:55 GMT (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.8/8.8.7) with ESMTP id CAA24475; Sat, 18 Apr 1998 02:29:47 +0100 (BST) (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199804180129.CAA24475@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: Eivind Eklund cc: Brian Somers , current@FreeBSD.ORG Subject: Re: Bug in sh? In-reply-to: Your message of "Sat, 18 Apr 1998 03:07:26 +0200." <19980418030726.52891@follo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 18 Apr 1998 02:29:47 +0100 From: Brian Somers Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Sat, Apr 18, 1998 at 01:41:08AM +0100, Brian Somers wrote: > > [.....] > > > #!/bin/sh > > > . < > > `SHELL=sh && export SHELL && tset -s -Q \?$TERM < /dev/tty` > > > EOF > > [.....] > > > The second version doesn't work - it exits immediately, and seems to > > > run tset _after_ the shell has quit. > > > > This isn't a bug as you describe it. IMHO, the bug is that the shell > > doesn't complain that you've failed to pass ``.'' a file name. > > My fault. I always forget that < (as it ought to, and used to in my old world), but instead is just one more > way of putting things at stdin. > > . still shouldn't just continue, and run the command in a second fork > . _after_ the initial shell script has quit. That _has_ to be a bug? Agreed. > Eivind. -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message