#11993: Fix output of `sage --version`
-----------------------------+----------------------------------------------
   Reporter:  leif           |          Owner:  leif            
       Type:  defect         |         Status:  positive_review 
   Priority:  minor          |      Milestone:  sage-4.8        
  Component:  scripts        |       Keywords:  banner sage-sage
Work_issues:                 |       Upstream:  N/A             
   Reviewer:  John Palmieri  |         Author:  Leif Leonhardy  
     Merged:                 |   Dependencies:                  
-----------------------------+----------------------------------------------
Changes (by jdemeyer):

  * status:  needs_work => positive_review


Old description:

> The one who was aiming at the ''Useless Use of `cat` Award'' ![1]
> unfortunately did some wrong escaping, so we currently get for example:
> {{{
> #!sh
> $ ./sage --version
> | Sage Version 4.7.2.alpha3-pre7-without-examples, Release Date:
> 2011-09-28 |
> * Warning: this is a prerelease version, and it may be unstable.     *
> }}}
>
> Also, I don't think the second line should be printed, hence the new
> version also case-sensitively "greps" for `Version`, such that we get:
> {{{
> #!sh
> $ ./sage --version
> Sage Version 4.7.2.alpha3-pre7-without-examples, Release Date: 2011-09-28
> }}}
>
> ----
>
> ![1] http://partmaps.org/era/unix/award.html
>
> See also [http://uselessuseofcat.com/?p=346 The Tragedy of Bash].
>
> ----
>
> Apply [attachment:trac_11993-fix_sage_--version.scripts.patch] to the
> Sage '''scripts''' repository.

New description:

 The one who was aiming at the ''Useless Use of `cat` Award'' ![1]
 unfortunately did some wrong escaping, so we currently get for example:
 {{{
 #!sh
 $ ./sage --version
 | Sage Version 4.7.2.alpha3-pre7-without-examples, Release Date:
 2011-09-28 |
 * Warning: this is a prerelease version, and it may be unstable.     *
 }}}

 Also, I don't think the second line should be printed, hence the new
 version also case-sensitively "greps" for `Version`, such that we get:
 {{{
 #!sh
 $ ./sage --version
 Sage Version 4.7.2.alpha3-pre7-without-examples, Release Date: 2011-09-28
 }}}

 ----

 ![1] http://partmaps.org/era/unix/award.html

 See also [http://uselessuseofcat.com/?p=346 The Tragedy of Bash].

 ----

 Apply [attachment:trac_11993-fix_sage_--version.scripts.v2.patch] to the
 Sage '''scripts''' repository.

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11993#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to