[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:
Documented
is documented by DOCS-11984 Docs for SERVER-36196: expose functio... Closed
Related
is related to SERVER-32849 Prompt before write commands with shell Open
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: SERVER-36196 expose function isInteractive() for determining if shell is running in interactive mode.

Signed-off-by: Max Hirschhorn <max.hirschhorn@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/801fb6ac59e74a4a4076fac1c7174a266938c6a6

Generated at Thu Feb 08 04:42:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.