[SERVER-36196] expose function in shell to determine if it's running in interactive mode Created: 19/Jul/18 Updated: 29/Oct/23 Resolved: 15/Aug/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | None |
| Fix Version/s: | 4.1.2 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Asya Kamsky | Assignee: | Asya Kamsky |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
It can be useful to know if shell is running in interactive mode or script mode in order to take different action (as the shell itself already does in many cases). This request is for function that can be invoked from the shell or script to determine which this is.
|
| Comments |
| Comment by Githook User [ 15/Aug/18 ] |
|
Author: {'name': 'Asya Kamsky', 'email': 'asya999@gmail.com', 'username': 'asya999'}Message: Signed-off-by: Max Hirschhorn <max.hirschhorn@mongodb.com> |