#9606: local/bin/sage-sage assumes 'sh' is bash
-----------------------+----------------------------------------------------
Reporter: pjeremy | Owner: pjeremy
Type: defect | Status: new
Priority: minor | Milestone: sage-5.0
Component: freebsd | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------+----------------------------------------------------
"sage -sh" is intended to start a subshell of the user's preference (as
per $SHELL) with the local Sage environment configured in it.
In order to prevent the environment being altered by the user's shell RC
scripts, local/bin/sage-sage passes an argument to $SHELL which is
intended to disable RC processing. Unfortunately, it assumes that 'sh' is
'bash' and passes '--norc' - which is not legal for POSIX shells.
Whilst this appears to be ignored by Solaris /bin/sh and /usr/xpg4/bin/sh
(which is at variance to the man page), it is rejected by FreeBSD /bin/sh
- which reports "Illegal option --".
The fix is not clear because Cygwin, Linux and OpenSolaris (at least) all
install bash as /bin/sh - though experiments show that at least bash-4.1.7
will not run any RC script when invoked as sh.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9606>
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.