Re: [Help-bash] Why is "volatile" used in bash source code?
From:
Peng Yu
Subject:
Re: [Help-bash] Why is "volatile" used in bash source code?
Date:
Wed, 6 Feb 2019 15:02:38 -0600
> Now, if you ask about a PARTICULAR file/function/line of code that uses
> volatile, I can give you more details why that particular use requires
> the keyword.
For example, the following lines in main() of shell.c. If they are not
"volatile", what will happen?
370 volatile int locally_skip_execution;
371 volatile int arg_index, top_level_arg_index;
--
Regards,
Peng