zsh-users
 help / color / mirror / code / Atom feed
From: gammafunction@vivaldi.net
To: Roger Mason <rmason@mun.ca>
Cc: zsh-users@zsh.org
Subject: Re: zpasesopts problem
Date: Wed, 02 Jun 2021 20:30:59 +0000	[thread overview]
Message-ID: <288c0ad81dd2380ac41271e0cd7e44b4@vivaldi.net> (raw)
In-Reply-To: <y65im2w18q8.fsf@mun.ca>

On 2021-06-02 17:23, Roger Mason wrote:
>> 2021-06-02 13:44:44 -0230, Roger Mason:
>> 
>> My guess would be that you're expecting $argv to be:
>> 
>> typeset -a argv=( --symbol Si --rmt 1.55 --nocc 7 --vstates 1112 )
>> 
>> but it's not, possibly because you've called "shift" too many
>> times or with the wrong number as argument.

It's not shift, it's another zparseopts instance which is affecting your
`$argv`.

> # ngridk.  Needs special handling b/c it is an array.  For some reason
> # I could not get text like '1 1 1' to load into postgresql correctly.
> zparseopts -D -E -A intarrays  - -ngridk: -xctype:
> zparseopts -D -E -A elkbools   - $elkbools
> zparseopts -D -E -A elkfloats  - $elkfloats
> zparseopts -D -E -A elkints    - $elkints
> zparseopts -D -E -A elktexts   - $elktexts
> 

Check these, it may be that one of the $elk*s contains the word 
`-symbol`
and thus your `--symbol` flag gets `-D`eleted here. Add this just before
these zparseopts calls:

     typeset -mp 'elk*s'


  reply	other threads:[~2021-06-02 20:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-02 16:14 Roger Mason
2021-06-02 17:00 ` Stephane Chazelas
2021-06-02 17:23   ` Roger Mason
2021-06-02 20:30     ` gammafunction [this message]
2021-06-03  9:24       ` Roger Mason

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=288c0ad81dd2380ac41271e0cd7e44b4@vivaldi.net \
    --to=gammafunction@vivaldi.net \
    --cc=rmason@mun.ca \
    --cc=zsh-users@zsh.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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).