[sage-devel] Exit status of Sage

2015-01-17 Thread Jernej Azarija
Hello, I have to use Sage from an external comand and in order to do so I'll need to rely on the exit status given by Sage. Considering a trivial example = $ cat foo.sage exit(0) = I get the following behaviour = $ sage la.sage 0 $ echo $? 1 =

[sage-devel] Re: Exit status of Sage

2015-01-17 Thread John H Palmieri
On Saturday, January 17, 2015 at 10:28:22 AM UTC-8, Jernej Azarija wrote: Hello, I have to use Sage from an external comand and in order to do so I'll need to rely on the exit status given by Sage. Considering a trivial example = $ cat foo.sage exit(0) = I

Re: [sage-devel] Re: Exit status of Sage

2015-01-17 Thread Robert Bradshaw
On Sat, Jan 17, 2015 at 2:02 PM, John H Palmieri jhpalmier...@gmail.com wrote: On Saturday, January 17, 2015 at 10:28:22 AM UTC-8, Jernej Azarija wrote: Hello, I have to use Sage from an external comand and in order to do so I'll need to rely on the exit status given by Sage. Considering a

[sage-devel] Re: Exit status of Sage

2015-01-17 Thread Jernej Azarija
I suppose there is a bug in the sage bash script? === 101 102 # Return $out 103 echo $out 104 } === should that be exit actually? On Saturday, 17 January 2015 19:28:22 UTC+1, Jernej Azarija wrote: Hello, I have to use Sage from an external comand and in

[sage-devel] The fastest way to expand((a1+a2+a3+a4+sqrt(3)*a5)^25)

2015-01-17 Thread Ondřej Čertík
Hi, I was wondering what the fastest way is to do this benchmark in Sage: ┌┐ │ Sage Version 6.4, Release Date: 2014-11-14 │ │ Enhanced for SageMathCloud.│