The gogo console automatically prints the value of the last interactive
command.

When running a script, the result of each intermediate command is not
printed.

You can control this behaviour as follows (taken from comment in
gosh_profile)

  ## disable console auto-formatting of each result
  #  you will then need to explicitly use the 'format' command
  #  to print the result of commands that don't write to stdout.
  #.Gogo.format = false

--
Derek


On 9 January 2013 16:36, Andreas Sewe <[email protected]> wrote:

> Hi Richard,
>
> > I believe you can override the gosh_profile file by putting it in an
> > etc/ directory either in user.dir or whichever directory you set via
> > gosh.home config property.
>
> thanks, that works very well. :-)
>
> One question, though: Why does a String-returning banner() command not
> display anything in gosh_profile when using "banner", when it works when
> using "banner | cat"? As far as I can tell from the source code, the
> gosh_profile file is 'sourced', so I would expect "banner" to behave the
> same, whether entered on the command line or 'sourced' from gosh_profile.
>
> But that's just a minor issue; I am just curious of why there is a
> difference.
>
> Best wishes,
>
> Andreas
> --
> Codetrails.com - the knowledge transfer company
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to