REBOL3 tracker
  0.9.12 beta
Ticket #0001829 User: anonymous

Project:



rss
TypeWish Statustested Date17-Jan-2011 18:12
Versionalpha 110 CategoryUnspecified Submitted byabolka
PlatformAll Severityminor Prioritynormal

Summary Be quiet by default when running with a script and/or redirected I/O
Description Currently R3 prints
- a short banner when run with a script file or --do.
- a full banner when running without a script but redirected I/O.

Banner printing can be turned off by passing the -q / --quiet command line option, which I observe myself using all the time.

As I find the banner to be at least not useful and at worst harmful in the above situations, I propose that unless run interactively, R3 defaults to being quiet. As redirected I/O may be hard to detect on some platforms, R3 should at least be quiet when running scripts.
Example code
# --- current (A110) behaviour ---
$ rebol3 --do 'print "hello"'
REBOL 3.0 A110 2-Nov-2010/3:54:31

hello
$

# --- suggested behaviour ---
$ rebol3 --do 'print "hello"'
hello

Assigned ton/a Fixed inalpha 111 Last Update13-Dec-2012 02:16


Comments
(0003055)
Carl
30-Jan-2011 20:35

This change has been made for scripts and for --do.

The sys-start.r logic is now:

    ;-- Print minimal identification banner if needed:
    if all [
        not quiet
        any [flags/verbose flags/usage flags/help]
    ][
        boot-print boot-banner ; basic boot banner only
    ]
(0003259)
abolka
13-Dec-2012 02:16

Works fined with the 101.0 (08eb7e84cd) open source release.

Date User Field Action Change
13-Dec-2012 02:16 abolka Status Modified built => tested
13-Dec-2012 02:16 abolka Comment : 0003259 Added -
30-Jan-2011 20:36 carl Fixedin Modified => alpha 111
30-Jan-2011 20:36 carl Status Modified reviewed => built
30-Jan-2011 20:35 carl Comment : 0003055 Added -
30-Jan-2011 18:46 carl Status Modified submitted => reviewed
17-Jan-2011 18:13 abolka Summary Modified Make --quiet the default when running with a script and/or redirected I/O => Be quiet by default when running with a script and/or redirected I/O
17-Jan-2011 18:13 abolka Description Modified -
17-Jan-2011 18:13 abolka Code Modified -
17-Jan-2011 18:12 abolka Ticket Added -