From 78b0d71f26c2660ca4a55926ce1420ca3902affa Mon Sep 17 00:00:00 2001 From: johannst Date: Mon, 17 May 2021 09:31:49 +0200 Subject: bash: fixed reset of OPTIND --- src/tools/bash.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/bash.md') diff --git a/src/tools/bash.md b/src/tools/bash.md index 6217e8f..2ce0523 100644 --- a/src/tools/bash.md +++ b/src/tools/bash.md @@ -129,7 +129,7 @@ function parse_args() { esac done # users responsibility to reset OPTIND - OPTIND=0 + OPTIND=1 } parse_args -f xxx -c -- cgit v1.2.3