Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4770
| From | "Rolf.Mertig@gmail.com" <rolf.mertig@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Print bug with -script? (quotes display) |
| Date | 2011-09-06 07:57 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j44jok$8uj$1@smc.vnet.net> (permalink) |
| References | <j40sub$l1t$1@smc.vnet.net> |
On Sep 5, 12:09 am, Alan <alan.is...@gmail.com> wrote: > I am using Mathematica under Windows Vista. To run Mathematica commands as a script, my understanding is that I should invoke > math.exe -script <scriptname> > This is working, but if I print a string > Print["Test"] > it prints surrounded by quotes (as written literally). > I find this highly undesirable: can the quotes be suppressed? > > Also, this behavior seems to conflict with the documentation:http://reference.wolfram.com/mathematica/tutorial/PropertiesOfStrings... > > Is it a bug? > > Thanks, > Alan Isaac One possibility is to define your own Print function: myPrint[s_String]:=WriteString["stdout",s]; Or, you could probably even do Unprotect[Print]; Print[s_String]:=WriteString["stdout",s]; Another possibility would be to switch to Linux, since there this bug is not present. Rolf Mertig GluonVision GmbH Berlin
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Print bug with -script? (quotes display) Alan <alan.isaac@gmail.com> - 2011-09-04 22:09 +0000
Re: Print bug with -script? (quotes display) "Rolf.Mertig@gmail.com" <rolf.mertig@gmail.com> - 2011-09-06 07:57 +0000
Re: Print bug with -script? (quotes display) MC Andre <andrew.pennebaker@gmail.com> - 2011-11-02 11:21 +0000
csiph-web