Starting a shell from scripts using su results in "no job control in this shell"
This document (7009640) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 11 Service Pack 1
Situation
When starting a shell from a su command, the command exits with:
linux:~ # su - test -c "echo 1; echo 2; bash"
1
2
bash: no job control in this shell
test@linux:~>
resulting in not being able to use bash's job control and put processes into the background with "CTRL+z bg".
Resolution
instead of
Example:
1
2
test@linux:~>
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7009640
- Creation Date: 26-Oct-2011
- Modified Date:13-Mar-2021
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com