From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel,gmane.lisp.guile.user Subject: Re: How can I tell guile to shut up? ;) Date: Thu, 31 Mar 2011 13:11:16 +0200 Message-ID: References: <99db88be1896528082d33a77ec4cadbe.squirrel@webmail.kapsi.fi> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1301574517 16518 80.91.229.12 (31 Mar 2011 12:28:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2011 12:28:37 +0000 (UTC) Cc: guile-user@gnu.org, guile-devel To: =?utf-8?Q?Juhani_Viher=C3=A4koski?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Mar 31 14:28:32 2011 Return-path: Envelope-to: guile-devel@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 1Q5GzI-0008Bg-IF for guile-devel@m.gmane.org; Thu, 31 Mar 2011 14:28:32 +0200 Original-Received: from localhost ([127.0.0.1]:45771 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5GzH-0002fS-SB for guile-devel@m.gmane.org; Thu, 31 Mar 2011 08:28:31 -0400 Original-Received: from [140.186.70.92] (port=41662 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5Gz5-0002Zs-5P for guile-devel@gnu.org; Thu, 31 Mar 2011 08:28:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5Gz3-0003zT-EU for guile-devel@gnu.org; Thu, 31 Mar 2011 08:28:19 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:42694 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5Gz3-0003zN-Ai; Thu, 31 Mar 2011 08:28:17 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id EF41B3C76; Thu, 31 Mar 2011 08:30:06 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=7jy6EJK7mSQ2 O1s1YnaZlG6lypo=; b=EeJz1LsiyS8/YZNXncgGht5P1oerbtNkBXmY1yDmAc3p +gRdqtJbQ1wYgUpLmXOKsJ2o1SRd3FiLl1JVYHXQmpMg57rXrgopceEr3IaUKoMq Y1k7SaL8xi1JcjFHkLXV8wuVBSVpOTd+/YfU+4cZeuC97dtWswhJCpJv/tvf5vo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=nnxDdK HW8E2LJC7yjLSjI13NbN96JXo4eKc9SS3L1Y2T6eQImfthju2FsTn+77N9orCHb8 q3VF6bsLAx5qvtTNWM0JOdy/7TneN9guGZN9sbzMLBzPXVIlcDn0uajP5EiLKPFl /v7cq058hqP+nITxGtkDTk8naa6njUW9WTDCg= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id CA6AA3C74; Thu, 31 Mar 2011 08:30:03 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id C696C3C6E; Thu, 31 Mar 2011 08:29:57 -0400 (EDT) In-Reply-To: <99db88be1896528082d33a77ec4cadbe.squirrel@webmail.kapsi.fi> ("Juhani =?utf-8?Q?Viher=C3=A4koski=22's?= message of "Wed, 2 Mar 2011 10:22:16 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 9A8DE2AC-5B92-11E0-B63D-E8AB60295C12-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:12112 gmane.lisp.guile.user:8559 Archived-At: Hi Juhani, Sorry for the delay in the response! On Wed 02 Mar 2011 09:22, "Juhani Viher=C3=A4koski" wr= ites: > $ ./test-script > ;;; note: source file /home/misty/moonshine/yarg/scripts/./race > ;;; newer than compiled > /home/misty/.cache/guile/ccache/2.0-LE-4-2.0/home/misty/moonshine/yarg/sc= ripts/test-script.go > ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=3D0 > ;;; or pass the --no-auto-compile argument to disable. > ;;; compiling /home/misty/moonshine/yarg/scripts/./test-script > ;;; compiled > /home/misty/.cache/guile/ccache/2.0-LE-4-2.0/home/misty/moonshine/yarg/sc= ripts/test-script.go > It seems there is no option to disable these annoying messages in guile > 2.0. I do scripts using guile and I would appreciate not getting these > messages that interfere with other output. It is possible to use > 2>/dev/null but what would I do if my script would output error messages > (as it will probably do at some point)? I entirely agree that it's a problem. By default, running a Guile script should not cause Guile itself to print anything, to any port. These messages are useful at times, but they were more useful last year when compilation didn't work as well as it does now, and they could probably be pared down a bit. In addition there are actual compilation warnings: $ cat /tmp/foo.scm #!/opt/guile/env guile !# (+ 23 foo) $ /tmp/foo.scm ;;; note: source file /tmp/foo.scm ;;; newer than compiled /home/wingo/.cache/guile/ccache/2.0-LE-8-2= .0/tmp/foo.scm.go ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=3D0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /tmp/foo.scm ;;; /tmp/foo.scm:3:0: warning: possibly unbound variable `foo' ;;; compiled /home/wingo/.cache/guile/ccache/2.0-LE-8-2.0/tmp/foo.scm.go See that warning is useful! And perhaps you'd want to see it, even when you don't see some or all of the other lines. Unlike the autocompilation debugging, the unbound variable warning will probably go away before you distribute your script to users, because you'll fix the bug. Anyway, I just mean to say that the problem is a bit complicated. > My suggestion is to add option --quiet to guile. Hmm. I think prefer adding -Wfoo, for warnings, like GCC does. It's not getopt-long compatible, but we already have -ds. For other informational messages, it does seem that we need something like --quiet, or --verbosity=3D..., or something. Not quite sure what that is. I've copied guile-devel on this mail to see if anyone else has opinions on this. Thanks for the reminder! Andy --=20 http://wingolog.org/