From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.bugs Subject: Re: Stable 2.0 and popen.test on Debian Squeeze Date: Tue, 01 Mar 2011 14:40:02 -0500 Message-ID: <87aahesk8d.fsf@netris.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1299026898 3647 80.91.229.12 (2 Mar 2011 00:48:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2011 00:48:18 +0000 (UTC) Cc: bug-guile@gnu.org, Francis Southern To: Andy Wingo Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Mar 02 01:48:13 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PuaEe-0006Zf-Dm for guile-bugs@m.gmane.org; Wed, 02 Mar 2011 01:48:12 +0100 Original-Received: from localhost ([127.0.0.1]:36886 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuaEd-0000Fo-T4 for guile-bugs@m.gmane.org; Tue, 01 Mar 2011 19:48:11 -0500 Original-Received: from [140.186.70.92] (port=34168 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuVRe-0003qI-Bb for bug-guile@gnu.org; Tue, 01 Mar 2011 14:41:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuVQf-00035F-FU for bug-guile@gnu.org; Tue, 01 Mar 2011 14:40:18 -0500 Original-Received: from world.peace.net ([216.204.32.208]:55200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuVQf-000359-Cb for bug-guile@gnu.org; Tue, 01 Mar 2011 14:40:17 -0500 Original-Received: from ip68-9-118-38.ri.ri.cox.net ([68.9.118.38] helo=freedomincluded) by world.peace.net with esmtpa (Exim 4.69) (envelope-from ) id 1PuVQY-00057R-1A; Tue, 01 Mar 2011 14:40:10 -0500 Original-Received: from mhw by freedomincluded with local (Exim 4.69) (envelope-from ) id 1PuVQQ-0006yR-Qm; Tue, 01 Mar 2011 14:40:02 -0500 In-Reply-To: (Andy Wingo's message of "Sun, 27 Feb 2011 23:07:04 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 216.204.32.208 X-Mailman-Approved-At: Tue, 01 Mar 2011 19:40:37 -0500 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5249 Archived-At: Andy Wingo writes: > The difference seems to be the difference between: > > dash -c 'exec 1>/dev/null; echo closed 1>&2; exec 2>/dev/null; read' > > and > > bash -c 'exec 1>/dev/null; echo closed 1>&2; exec 2>/dev/null; read' > > Dash prints "closed" and exits immediately with error code 2. Bash > prints "closed" and waits for input from the "read". > > Are we relying on non-portable shell behavior here? In dash, "read" requires at least one argument: the name of the variable in which to put the string. You don't see the error message because stderr has been redirected to /dev/null. In bash, the REPLY variable is used by default. So the "read" above ought to be changed to "read REPLY". Best, Mark