Opened 11 years ago

Closed 11 years ago

#10302 closed defect (fixed)

sage -sh should pass exitcode

Reported by: jdemeyer Owned by: jason
Priority: minor Milestone: sage-4.6.1
Component: misc Keywords: scripts
Cc: leif Merged in: sage-4.6.1.alpha3
Authors: John Palmieri Reviewers: Jeroen Demeyer
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by jdemeyer)

The following should return 42:

$ sage -sh -c 'exit 42'; echo $?
0

Also this:

$ echo 'exit 42' |sage -sh; echo $?
0

Test that this is fixed: #10300

Attachments (1)

trac_10302-sage-sh.patch (588 bytes) - added by jhpalmieri 11 years ago.
scripts repo

Download all attachments as: .zip

Change History (6)

comment:1 Changed 11 years ago by jhpalmieri

  • Authors set to John Palmieri
  • Cc leif added
  • Status changed from new to needs_review

Does this patch fix it?

comment:2 Changed 11 years ago by jhpalmieri

Sorry, the patch has the wrong trac number in its name. Here's a new one.

Changed 11 years ago by jhpalmieri

scripts repo

comment:3 Changed 11 years ago by jdemeyer

  • Description modified (diff)
  • Milestone changed from sage-4.6.2 to sage-4.6.1

comment:4 Changed 11 years ago by jdemeyer

  • Reviewers set to Jeroen Demeyer
  • Status changed from needs_review to positive_review

comment:5 Changed 11 years ago by jdemeyer

  • Merged in set to sage-4.6.1.alpha3
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.