Bug 2028403

Summary: sage runs in an interactive bash shell
Product: [Fedora] Fedora Reporter: Jeroen Wouters <woutersj>
Component: sagemathAssignee: Paulo Andrade <paulo.cesar.pereira.de.andrade>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 35CC: paulo.cesar.pereira.de.andrade
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sagemath-9.5-2.fc37 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-28 01:04:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.