User Tools

Site Tools


bash:check_if_bash_is_running_in_interactive_mode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
bash:check_if_bash_is_running_in_interactive_mode [2021/02/04 10:44] peterbash: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 [ "$-#*i" == "$-" ]; then
 +  ...
 fi fi
 </code> </code>
bash/check_if_bash_is_running_in_interactive_mode.1612435474.txt.gz · Last modified: 2021/02/04 10:44 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki