unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#23349: Compile output shall be error output
@ 2016-04-23 11:36 Jean Louis
  2016-06-25 20:12 ` Matt Wette
  0 siblings, 1 reply; 4+ messages in thread
From: Jean Louis @ 2016-04-23 11:36 UTC (permalink / raw)
  To: 23349

When editing a guile file and running it, it is going to compile it, and
there are warnings:

;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /home/data1/protected/bin/webm2html
;;; compiled
;;;       /home/data1/protected/.cache/guile/ccache/2.0-LE-8-2.0/home/data1/protected/bin/webm2html.g\
o

This kind of warnings is not desired in the output of the command and
warning shall be given on the error output and not on standard output,
so that it is possible, just with any other programs to redirect the
warnings to dev null, for example: myguile.scm 2 > /dev/null, to avoid
such warnings.

This does not work as warnings are given on standard output.

Jean Louis





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#23349: Compile output shall be error output
  2016-04-23 11:36 bug#23349: Compile output shall be error output Jean Louis
@ 2016-06-25 20:12 ` Matt Wette
  2016-06-25 20:54   ` Matt Wette
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Wette @ 2016-06-25 20:12 UTC (permalink / raw)
  To: 23349

This issue is very similar to that in #16364.






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#23349: Compile output shall be error output
  2016-06-25 20:12 ` Matt Wette
@ 2016-06-25 20:54   ` Matt Wette
  2017-02-28 15:07     ` Andy Wingo
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Wette @ 2016-06-25 20:54 UTC (permalink / raw)
  To: 23349

[-- Attachment #1: Type: text/plain, Size: 2632 bytes --]

And I believe this works as asked.  Below I execute the same “load” three times under guile, under bash: first two w/o “2>/dev/null”, and the third time with “2>/dev/null” .  For the fourth time, I use “2>/dev/null -s ,update” to process as script (and skip the banner).

mwette$ guile
GNU Guile 2.0.11
Copyright (C) 1995-2014 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> (load ",update") 
;;; note: source file /Users/mwette/repo/sv/nyacc.git/module/nyacc/lang/c99/cpp.scm
;;;       newer than compiled /Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/Users/mwette/repo/sv/nyacc.git/module/nyacc/lang/c99/cpp.scm.go
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /Users/mwette/repo/sv/nyacc.git/module/nyacc/lang/c99/cpp.scm
;;; compiled /Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/Users/mwette/repo/sv/nyacc.git/module/nyacc/lang/c99/cpp.scm.go
$1 = 0
scheme@(guile-user)> ^D

mwette$ guile 
GNU Guile 2.0.11
Copyright (C) 1995-2014 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> (load ",update")
;;; note: source file /Users/mwette/repo/sv/nyacc.git/module/nyacc/lang/c99/cpp.scm
;;;       newer than compiled /Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/Users/mwette/repo/sv/nyacc.git/module/nyacc/lang/c99/cpp.scm.go
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /Users/mwette/repo/sv/nyacc.git/module/nyacc/lang/c99/cpp.scm
;;; compiled /Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/Users/mwette/repo/sv/nyacc.git/module/nyacc/lang/c99/cpp.scm.go
$1 = 0
scheme@(guile-user)> ^D

mwette$ guile 2>/dev/null
GNU Guile 2.0.11
Copyright (C) 1995-2014 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> (load ",update")
$1 = 0
scheme@(guile-user)> ^D

mwette$ guile 2>/dev/null -s ,update

mwette$ 


[-- Attachment #2: Type: text/html, Size: 6965 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#23349: Compile output shall be error output
  2016-06-25 20:54   ` Matt Wette
@ 2017-02-28 15:07     ` Andy Wingo
  0 siblings, 0 replies; 4+ messages in thread
From: Andy Wingo @ 2017-02-28 15:07 UTC (permalink / raw)
  To: Matt Wette; +Cc: 23349-done

On Sat 25 Jun 2016 22:54, Matt Wette <matt.wette@gmail.com> writes:

> And I believe this works as asked. Below I execute the same “load” three times under guile, under bash: first two w/o “2>/dev/null”, and the third time with “2>/dev/null” . For the
> fourth time, I use “2>/dev/null -s ,update” to process as script (and skip the banner).

Thanks for checking.  Closing as done; please follow up on the bug if
there is an error.

Andy





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-28 15:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-23 11:36 bug#23349: Compile output shall be error output Jean Louis
2016-06-25 20:12 ` Matt Wette
2016-06-25 20:54   ` Matt Wette
2017-02-28 15:07     ` Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).