Bug 2028403 - sage runs in an interactive bash shell
Summary: sage runs in an interactive bash shell
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: sagemath
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Paulo Andrade
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-02 10:34 UTC by Jeroen Wouters
Modified: 2022-03-28 01:04 UTC (History)
1 user (show)

Fixed In Version: sagemath-9.5-2.fc37
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-28 01:04:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jeroen Wouters 2021-12-02 10:34:06 UTC
Description of problem:
The bash wrapper script /usr/bin/sage starts bash with the "-i" argument for an interactive shell. This does not seem to be necessary and prints the below error message when sage is called from non-shell programs (such as the sagemath plugin for TeXmacs).

Version-Release number of selected component (if applicable): 9.4-2.fc35


How reproducible: always


Steps to Reproduce:
1. Start sage from a non-shell program (e.g. as a sagemath session in TeXmacs)

Actual results:
An error message is displayed

bash: cannot set terminal process group (2411): Inappropriate ioctl for device
bash: no job control in this shell

Expected results:
No error messages.

Additional info:
Removing the "-i" argument seems to have no effect on the functioning of sage, neither interactively on the command line, nor non-interactively when executing a .sage script or from the Jupyter notebook.

This script seems to be Fedora specific, it is not in upstream.

Comment 1 Fedora Update System 2022-03-28 00:59:37 UTC
FEDORA-2022-1542038ea6 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-1542038ea6

Comment 2 Fedora Update System 2022-03-28 01:04:23 UTC
FEDORA-2022-1542038ea6 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.