Re: [PATCH 1/1] Properly reset options for run of #!-less script

2016-05-06 Thread Chet Ramey
On 4/30/16 7:09 AM, Grisha Levit wrote: > A number of options were not getting reset in reset_shell_flags(), > reset_shell_options() and reset_shopt_options() so scripts without #!'s > could sometimes run differently than expected. > > The attached patch makes these functions more thorough and mak

[PATCH 1/1] Properly reset options for run of #!-less script

2016-04-30 Thread Grisha Levit
A number of options were not getting reset in reset_shell_flags(), reset_shell_options() and reset_shopt_options() so scripts without #!'s could sometimes run differently than expected. The attached patch makes these functions more thorough and makes them properly handle some #defines that were pr