|
[Date Index]
[Thread Index]
[Author Index]
Re: <> doesn't work in filename in a batch mode ?
- To: mathgroup at smc.vnet.net
- Subject: [mg67328] Re: <> doesn't work in filename in a batch mode ?
- From: ab_def at prontomail.com
- Date: Sun, 18 Jun 2006 05:13:28 -0400 (EDT)
- References: <e63mbk$klr$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
bar at ANTYSPAM.ap.krakow.pl wrote:
> When i used :
>
> dir = "/home/bar/TMP/";
> lists >> dir <> "filename.lst";
>
> it works correctly in graphical mode (notebook)
> When i try use it in batch mode ( math < file.m)
> i obtained:
>
> Syntax::sntxf: "lists>>dir" cannot be followed by "<>"filename.lst";".
>
>
> Why ?
It seems that the front end and the standalone kernel parse >> in
different ways. In the front end:
In[1]:= Hold[a >> b <> c] // FullForm
Out[1]//FullForm= Hold[Put[a, StringJoin[b, c]]]
In[2]:= Hold[a >> (b <> c)] // FullForm
Out[2]//FullForm= Hold[Put[a, StringJoin[b, c]]]
In mathkernel:
In[1]:= Hold[a >> b <> c] // FullForm
Out[1]//FullForm= Hold[StringJoin[Put[a, "b"], c]]
In[2]:= Hold[a >> (b <> c)] // FullForm
Syntax::sntxf: "Hold[a >> " cannot be followed by "(b <> c)] //
FullForm".
Maxim Rytin
m.r at inbox.ru
Prev by Date:
Re: Mathematica bugs?
Next by Date:
Re: Mathematica bugs?
Previous by thread:
Re: <> doesn't work in filename in a batch mode ?
Next by thread:
Re: How to generate sections, subsections, etc. automatically?
|