MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Print bug with -script? (quotes display)

  • To: mathgroup at
  • Subject: [mg121246] Re: Print bug with -script? (quotes display)
  • From: Alan <alan.isaac at>
  • Date: Tue, 6 Sep 2011 03:56:06 -0400 (EDT)
  • Delivered-to:
  • References: <> <j42b57$rsl$>
  • Reply-to: comp.soft-sys.math.mathematica at

On Monday, September 5, 2011 7:17:59 AM UTC-4, Patrick Scheibe wrote:
> I don't consider this as a bug. It's just that
> the Mathematica frontend usually displays strings without the quotes: 

I'm not sure I follow.

Can you name another language where printing a string
to standard out will print the delimiters used to
create a string literal?  I cannot.  This is at least
unexpected, and I suspect is should be considered a bug.
Can you make an argument that a user should expect InputForm
rather than DisplayForm when printing to standard out
(i.e., when using the -script option)?

Btw, you cannot just convert to DisplayForm to Print the string;
that does not work at the console.  In short, the behavior of
Print is quite odd, unexpected, and I claim buggy when running
with the -script option.  (But I'm new to Mathematica and willing to
listen to reasons for this surprising behavior.)

Related: I do not understand why one must use ToString
on a StringForm when printing it in a console script.  The
behavior in a notebook is what is expected, and imo it should
be what one sees at the console.

If I understand correctly, the -script option is new, and it looks
like not enough of the Mathematica output behavior has been adjusted to
this flag.

Alan Isaac

  • Prev by Date: Re: Confusing Result with Series
  • Next by Date: Texture in version 8, fine, but don't export...?
  • Previous by thread: Re: Print bug with -script? (quotes display)
  • Next by thread: Re: Print bug with -script? (quotes display)