bash:check_if_bash_is_running_in_interactive_mode
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
bash:check_if_bash_is_running_in_interactive_mode [2021/02/04 10:43] – peter | bash:check_if_bash_is_running_in_interactive_mode [2021/02/04 11:08] (current) – [BASH - Check if bash is running in interactive mode] peter | ||
---|---|---|---|
Line 5: | Line 5: | ||
then | then | ||
do_interactive_stuff | do_interactive_stuff | ||
+ | fi | ||
+ | |||
+ | |||
+ | if [ " | ||
+ | ... | ||
fi | fi | ||
</ | </ | ||
Line 16: | Line 21: | ||
---- | ---- | ||
+ | |||
+ | ====== Check if standard input is a TTY ====== | ||
<code bash> | <code bash> |
bash/check_if_bash_is_running_in_interactive_mode.1612435422.txt.gz · Last modified: 2021/02/04 10:43 by peter