#10300: Test some command line options
------------------------------+---------------------------------------------
   Reporter:  jdemeyer        |       Owner:  mvngu             
       Type:  enhancement     |      Status:  needs_info        
   Priority:  major           |   Milestone:  sage-4.6.1        
  Component:  doctest         |    Keywords:  command line tests
     Author:  Jeroen Demeyer  |    Upstream:  N/A               
   Reviewer:                  |      Merged:                    
Work_issues:                  |  
------------------------------+---------------------------------------------

Comment(by aapitzsch):

 Fedora 12 (64bit)
 kernel 2.6.32.23-170.fc12.x86_64
 {{{
 $ ./sage -sh -c 'echo $0; echo $BASH'

 Starting subshell with Sage environment variables set.
 Be sure to exit when you are done and do not do anything
 with other copies of Sage!

 Bypassing shell configuration files ...

 tcsh
 BASH: Undefined variable.
 Exited Sage subshell.
 }}}
 {{{
 $ ./sage -sh -c "echo >&2 Hello World"

 Starting subshell with Sage environment variables set.
 Be sure to exit when you are done and do not do anything
 with other copies of Sage!

 Bypassing shell configuration files ...

 Exited Sage subshell.
 }}}
 {{{
 $ ./sage -sh -c "echo >&2 Hello World" > /dev/null
 }}}
 (no output)
 {{{
 $ ./sage -sh -c "echo >&2 Hello World" 2>/dev/null
 }}}
 (no output)
 {{{
 $ bash -c "echo >&2 Hello World"
 Hello World
 }}}
 {{{
 $ bash -c "echo >&2 Hello World" >/dev/null
 Hello World
 }}}
 {{{
 $ bash -c "echo >&2 Hello World" 2>/dev/null
 Hello World
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10300#comment:7>
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