From: Alan B. <ala...@gm...> - 2024-01-05 15:07:32
|
See my comments below in red. Alan Barnes On 05/01/2024 09:49, Nasser M. Abbasi wrote: > I have list, which in the attached script I print on to the terminal > using > > write M; > > Where M is the list. > > Sometimes it displays on the terminal on one line as expected. > sometimes it displays each entry in the list on separate line. Not sure why this happens (maybe acn can elucidate) -- Reduce was originally developed for interactive use and consequently tries to break long lines at meaningful points -- not always successfully. > > Here is screen shot attached. > > I added > > off output; > linelength(1000); > > At the top of my script in order to only see explicit output > from the "write" command and nothing else as the script runs. > > But I still see numbers 1: 2: 3: etc... print at the start of the > script. why is that? > > Please see the script file.red attached. > > > I run it as follows > > redcsl < file.red > It is better to start Reduce (with redcsl or redpsl according to taste) and then do #000000 in "file.red"$ Output from the individual commands in the file can be controlled by using semicolon or dollar as desired. > I am using Reduce (CSL, rev 6657), 10-Dec-2023 on Linux > which I build from source code. (Thanks to Francis Wright for > #0000#00000000 > sending me link to the source tar file as it was not easy to > find it at sourceforge). > > What do I need to change in the script so each list is printed > on one line, no matter how long it is? > > Thanks > --Nasser > > > _______________________________________________ > Reduce-algebra-developers mailing list > Red...@li... > https://lists.sourceforge.net/lists/listinfo/reduce-algebra-developers |