Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zpasesopts problem
- X-seq: zsh-users 26759
- From: Roger Mason <rmason@xxxxxx>
- To: zsh-users@xxxxxxx
- Subject: zpasesopts problem
- Date: Wed, 02 Jun 2021 13:44:44 -0230
- Archived-at: <https://zsh.org/users/26759>
- Ironport-hdrordr: A9a23:96ODI64wSW7ZuUxUXQPXwNXXdLJyesId70hD6qkRc3xom6Oj+PxG8M5w6faWslcssRMb9+xoUZPoKU80nqQY3WB+B9qfdTX9tHDtJI9v6paK+VbdJxE=
- Ironport-sdr: heuEfyVfqluGHTiwoYd9tD67KIoPYujybQXNb5l1MT8pxudW5IKAlHbHsrhKFrl+S3O24LcJFD gnnp5V+mwLd0EheCz8UrsS1LLrvioV6tM3e5OIC5cDgU1W4lVOmsopx+aHM7xdo7f+u7EHDH5X X0PIuW8xAACC5c/84bDE2+3aor1Jm3Xc08tCXePfKwKg65j+diloeGUJ8WB/vxcOJNea6Waiff d26p73o7IKxlefUJwrmfU+xqjesaf8qNOp1d9wkuoYYTGLDaCi44UDx1bT88AwuDs/9FnMHmlP 6wM=
- List-id: <zsh-users.zsh.org>
Hello,
I have this in a script:
if [[ $spsource == SpeciesGenerated ]];then
zparseopts -D -E - -symbol+:=chemsyms -rmt+:=rmts -nocc+:=noccs -vstate+:=vstates
echo "Parsing species options."
fi
if [[ ${#chemsyms} -ne ${#rmts} ]] || [[ ${#chemsyms} -ne ${#noccs} ]] || [[ ${#chemsyms} -ne ${#vstates} ]];then
echo "The numbers of chemical chemsyms, RMTs, occupation numbers and valence states do not match."
echo "#chemsyms = ${#chemsyms}, #rmts = ${#rmts}, #noccs = ${#noccs}, #vstates = ${#vstates}"
echo "Check your command line. Exiting."
exit -1
fi
Given this command line:
rm -rf *20210602-*;./GenerateElkJX.sh filmperthite --tasks 0 --spsource \
SpeciesGenerated --symbol Si --rmt 1.55 --nocc 7 --vstates '1112'
I get:
Parsing species options.
The numbers of chemical chemsyms, RMTs, occupation numbers and valence states do not match.
#chemsyms = 0, #rmts = 2, #noccs = 2, #vstates = 2
Check your command line. Exiting.
I don't understand why the value given for chemsyms (--symbol Si) is
unrecognised.
Thanks for any help in making this work.
Roger
Messages sorted by:
Reverse Date,
Date,
Thread,
Author