Is it possible to get information of the surrounding shell? #453
-
I'd like to detect whether the program was called from Is there something in spectre.console that can help with this? |
Beta Was this translation helpful? Give feedback.
Answered by
phil-scott-78
Jun 16, 2021
Replies: 1 comment 3 replies
-
Typically a shell is going to set the SHELL environmental variable. I gotta ask what your intentions are here. Anything besides just logging or displaying the value I'd recommend using the capabilities class which tries to abstract out what each console is capable of. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
nils-a
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Typically a shell is going to set the SHELL environmental variable.
I gotta ask what your intentions are here. Anything besides just logging or displaying the value I'd recommend using the capabilities class which tries to abstract out what each console is capable of.