Bug#985478: [PATCH] options: Always reset OPTIND in getoptsreset

2024-05-19 Thread Harald van Dijk
On 19/05/2024 12:19, Herbert Xu wrote: On Wed, Jan 04, 2023 at 04:50:34PM +, Harald van Dijk wrote: Personally, I do think it is better if shells allow assigning arbitrary values to OPTIND, including unsetting it, and only have the getopts command raise an error if the value is

Bug#985478: [PATCH] options: Always reset OPTIND in getoptsreset

2024-05-19 Thread Herbert Xu
On Wed, Jan 04, 2023 at 04:50:34PM +, Harald van Dijk wrote: > > Personally, I do think it is better if shells allow assigning arbitrary > values to OPTIND, including unsetting it, and only have the getopts command > raise an error if the value is non-numeric, but that is my personal opinion >