From owner-freebsd-stable Thu Jul 11 18:43:27 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D418F37B400 for ; Thu, 11 Jul 2002 18:43:24 -0700 (PDT) Received: from smtp.noos.fr (claudel.noos.net [212.198.2.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4A3343E5E for ; Thu, 11 Jul 2002 18:43:23 -0700 (PDT) (envelope-from root@gits.dyndns.org) Received: (qmail 27669209 invoked by uid 0); 12 Jul 2002 01:43:22 -0000 Received: from unknown (HELO gits.gits.dyndns.org) ([212.198.229.153]) (envelope-sender ) by 212.198.2.83 (qmail-ldap-1.03) with SMTP for ; 12 Jul 2002 01:43:22 -0000 Received: from gits.gits.dyndns.org (90h3kfhwfhiqcgj8@localhost [127.0.0.1]) by gits.gits.dyndns.org (8.12.5/8.12.5) with ESMTP id g6C1hMTL027111; Fri, 12 Jul 2002 03:43:22 +0200 (CEST) (envelope-from root@gits.dyndns.org) Received: (from root@localhost) by gits.gits.dyndns.org (8.12.5/8.12.5/Submit) id g6C1hLDm027110; Fri, 12 Jul 2002 03:43:21 +0200 (CEST) (envelope-from root) Date: Fri, 12 Jul 2002 03:43:21 +0200 From: Cyrille Lefevre To: Moritz Willers Cc: stable@FreeBSD.ORG Subject: Re: what changed in /bin/sh with [n]>&- ? Message-ID: <20020712014321.GP21234@gits.dyndns.org> References: <5AE7E15E-8ECD-11D6-A3F7-00039305A292@wit.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5AE7E15E-8ECD-11D6-A3F7-00039305A292@wit.ch> User-Agent: Mutt/1.3.99i Organization: ACME X-Face: V|+c;4!|B?E%BE^{E6);aI.[< List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Jul 03, 2002 at 10:39:29PM +0100, Moritz Willers wrote: > after the update > > # uname -r > 4.6-RELEASE-p1 > # /bin/sh -c 'echo "ha" >&-' > ha > # > > according to the manpage and my knowledge this should not produce any > output: > > [n]>&- close stdout (or file descriptor n) > > is this an intentional change or a unwanted feature? IMHO, it's not a feature :) I'll take a look at this... but, for instance, fill a PR (man send-pr), thanks. Cyrille. -- Cyrille Lefevre mailto:cyrille.lefevre@laposte.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message