[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Strange SA/NV behavior



Has anyone experienced this problem:

I have a file onscreen, CONTENTS.HTM which I save by having the program do:
SA/NV
After massaging the text on the screen, I want to save the results under a different name, so I have:

SA/NV ARCHIVE.NEW
I use SA/NV rather than just SA in each case because there are older, pre-existing versions of each file that I want to replace with what's onscreen.

But it won't do the second save. It says "Invalid file name."
If I have the program leave SA/NV ARCHIVE.NEW on the command line, then stop, it does the right save if I then hit Enter.
If I take out the first SA/NV, the second works fine. Thinking it might be
a timing problem, I used WAITs and P[ause], but they didn't help.
I tried deleting the old ARCHIVE.NEW then doing just a SA (without the /NV)
and it still won't save it.

As a work-around, I have changed the first SA/NV to:
ST
CA CONTENTS.HTM
By doing that, I can successfully issue SA/NV ARCHIVE.NEW when it arises, later.
I tried the following simple version, as a test, and it ran fine, so it has
something to do with the actual code that is in between the two SA/NVs.

XPLeNCODE v2.0
b-gin [UNTITLED]
[BX_]gofile t.bas[Q2_];*;[cr|lf];*;[cr|lf]{<}IF{<}ER{>}{>}[BX
_]ca t.bas[Q2_];*;[cr|lf]{<}EI{>};*;[cr|lf]{<}SV02,Yes{>}{<}S
V03,No{>}[BX_]sa/nv 1[Q2_];*;[cr|lf][BX_]sa/nv 2[Q2_];*;
-nd
XPLeNCODE

As I say, the above works.
But here's a section of the actual code which, even when excised, gives the problem:

XPLeNCODE v2.0
b-gin [UNTITLED]
{<}SV555,0{>}{<}SV50,{>}{<}SV588,[cr|lf]{>}{<}SV01,{>}
{<}SV02,test{>}[BX_]gofile contents.htm[Q2_];*;[cr|lf];*;[cr|
lf]{<}IF@NOT({<}ER{>}){>}[BX_]ab[Q2_];*;[cr|lf]{<}EI{>};*;[cr
|lf][BX_]copy/nv contents contents.htm[Q2_];*;[cr|lf][BX_]ca{032}
contents.htm[Q2_];*;[cr|lf][TF_][cr|lf][TF_][BX_]ci {179}&{17
9}&amp;{179}[Q2_];*;[cr|lf][BX_]ci {179}"{179}&quot;{179}[Q2_
];*;[cr|lf][TF_][BX_]ci {179}[wC][wN]. {179}[wC]
  • {179}[Q2_];*;[cr|lf][TF_][BX_]ci {179}[wC] [wN][wN]. {179}[wC]
  • {179}[ Q2_];*;[cr|lf][BX_]ci {179} -- [wW][wC]{179} &#8212; [wW]
  • [wC]{179}[Q2_];*;[cr|lf][TF_][BX_]ci /[w<]md[wW ][w>]//[Q2_];*;[cr|lf][BX_]sa/nv[Q2_];*;[cr|lf]{<}SX048,{<}VA $DAmm/dd/yy{>}{>}[TF_][BX_]ci {179}
  • {179}[wC]{tab} {<}PV48{>}[wC]{179}[Q2_];*;[cr|lf][BX_]ci {179}#post{179 }{<}PV02{>}#post{179}[Q2_];*;[cr|lf];*;[cr|lf]{<}IF{<}ER{>}{> }[BC_]Couldn't change #post to htm.fn$ + #post{<}GL_{>}{<}EI{ {062}};*;[cr|lf][BX_]ci {179}{179}{179}[cr|lf][Q2_]; *;[cr|lf][BX_]ci {179} &#8212; {179}[wC]{ta b}{tab}{tab}{179}[Q2_];*;[cr|lf][BX_]ci {179}
  • {17 9}[wC]{179}[Q2_];*;[cr|lf][TF_][BX_]ci /[w<]md[wW][ w>]//[Q2_];*;[cr|lf][BX_]es 0[Q2_];*;[cr|lf][BX_]wait[Q2_];*; [cr|lf][BX_]sa/nv archive.new[Q2_];*;[cr|lf];*;[cr|lf]{<}LB_{ {062}};*;EXIT [cr|lf]{<}SV50,555-598{>}[JM_]2.clearsgts[Q2_];*;[c r|lf]{<}EX{>} -nd XPLeNCODE The program begins with the file CONTENTS which looks like this:
    1. Govind Malkani, husband of Tara Malkani, passes away in Bombay -- Vikram Bajaj
    2. Rob Tarr's Comment -- Paul Ierymenko
    3. Shale Gas -- Burke Chester
    4. The Greatness of Man, through Typhoon Nangka -- Richard Bramwell
    
    Is this a bug--or the dreaded "user error"?
    
    Any help appreciated.
    
    
    
    
    
    Harry Binswanger
    hb@xxxxxxxx