From: "Vladimir N. Oleynik" <dzo@simtreas.ru>
To: dash@vger.kernel.org
Subject: Re: getopts appears to not be shifting $@ when consuming options
Date: Sat, 30 Jan 2021 11:36:48 +0400 [thread overview]
Message-ID: <4273c178-60fe-ec37-3c7c-6576591ab12f@simtreas.ru> (raw)
In-Reply-To: <YBSLRXjBSbNmOHP2@teapot>
Hello,
>> set -- -a foo -a bar # for testing
>> while getopts :a: arg; do
>> ...
You can use typical array cryptic emulation with dash for this :)
But i can not send this cryptic script to maillist, his parser crashing:
"for recipient address <dash@vger.kernel.org> the policy analysis reported:
zpostgrey: Read timed out !!!" :))
See ftp://simtreas.ru/pub/my/dash/arg2array.sh
--v
vodz
prev parent reply other threads:[~2021-01-30 9:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-29 18:25 getopts appears to not be shifting $@ when consuming options earnestly
2021-01-29 20:15 ` Harald van Dijk
2021-01-30 15:31 ` Harald van Dijk
2021-01-29 20:36 ` Jilles Tjoelker
2021-01-29 21:19 ` Harald van Dijk
2021-01-29 22:25 ` earnestly
2021-01-30 6:39 ` Vladimir N. Oleynik
2021-01-30 7:36 ` Vladimir N. Oleynik [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4273c178-60fe-ec37-3c7c-6576591ab12f@simtreas.ru \
--to=dzo@simtreas.ru \
--cc=dash@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).