aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2021-05-17 09:31:49 +0200
committerjohannst <johannes.stoelp@gmail.com>2021-05-17 09:31:49 +0200
commit78b0d71f26c2660ca4a55926ce1420ca3902affa (patch)
tree88e5fd6cb2b2acaeec0f0abd6f47434c9c7028ac /src/tools
parent66e190555b3570da3f547efa33f3ab89d0388582 (diff)
downloadnotes-78b0d71f26c2660ca4a55926ce1420ca3902affa.tar.gz
notes-78b0d71f26c2660ca4a55926ce1420ca3902affa.zip
bash: fixed reset of OPTIND
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/bash.md2
1 files changed, 1 insertions, 1 deletions
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