From 82a74acd4885849e1e5684002d78e55deb6a6843 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Sat, 6 Oct 2007 18:59:31 +0800 Subject: [BUILTIN] Treat OPTIND=0 in the same way as OPTIND=1 Previously setting OPTIND to 0 would cause subsequent getopts calls to fail. This patch makes dash reset the getopts parameters the same way as OPTIND=1. Both behaviours are allowed by POSIX but other common shells do tolerate this case. --- ChangeLog | 1 + 1 file changed, 1 insertion(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index d3c7320..11cdb67 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2007-10-06 Herbert Xu * Add pushstackmark. + * Treat OPTIND=0 in the same way as OPTIND=1. 2007-10-05 Herbert Xu -- cgit 1.4.1