From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5554 invoked from network); 2 Jun 2021 16:16:50 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Jun 2021 16:16:50 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1622650610; b=y4KnIhTaM8+66/UcKJmhQ767nXiQWJpT/aOiRKIiaIkiXXF2Sn/4XC1pH+wrXZYne+0ToNU0sg RHXmolUr0gHdLHkt+fHBVARIBGrT0DoEluAHXs2IpfNPL2CvCasip83JkT6DnJi1cvpu9PEbED sfInktUzeUGTc7lhTAFEeIYs2VZ+2P1XfeLKeC5tq3dp43eUNLUHyYD6ind9y8SOHn+RFoctTF 4VCVHFbxa1XGFKyS2+CSP54oIHBXT90vGkn7fyKY93KFvS9kSuw1drBf3uJh1HqLagL7UqWJaS GM3yDsDolYQE8aKzwI56B/wst+CSSBZDs8wJcPQOcck3Ug==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (esa07.ucs.mun.ca) smtp.remote-ip=134.153.136.27; dmarc=none header.from=mun.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1622650610; bh=Tb8H3cSX7S/E8z9usbgbzUOu+e20uKO3o3SWENm1MRE=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:MIME-Version:Message-ID:Date:Subject:To:From: DKIM-Signature; b=YJjXaT/1ZD87djYuxmyqdfUSZCLuvUBQZ5OSbZ3xTEw7KB5sodTGCABtNf1qSG0qxi7K85Jvye kK57OwL8+XdtM5yd6/LUZ2Rwobv2YyQU54LSfbwvBRYjH+24GqZTaEbY+IhHdcqpA7A/Lmj3BI KcJngNxpaDJ8hVewemRslkN9sO44JraREmFBslAIqpZ+SM9rsxwVdsvnhLxDmtEqruikhtjqXV gzUQLiAve/d3ZbyeZ21/d7S1m7kRLA/761hh17aCMxCaEorIhC00CUWX7O4tbkAxcSQB9Lbow2 I8Pp2feO2hC+aywuFVHBk1XuLEmIFaDu1iqtAzRwYz5k5Q==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:MIME-Version:Message-ID: Date:Subject:To:From:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=2JbUzOBto+sTD65zVXMu4qCqtaXd+7shaCY34g47qhY=; b=nSPc/mmuOZvVSMBso2StLliInK Jf9sE8fNCITgWsPPAMn61lU6irX8RYi1l27+aUtmyTULpttAYvbus2Oxij+zj0D1N8xEJO9kP66gw 34DY/bC7iE3TEGpHhMD/Im7Icm/1Ze/AUFAR7m2HEe1dX0PZgTQabM3ZGEikkW7wPxKB0OWhjLhVl BvICfOjU6XZQ34/KVm+DKq+yPs4qr1WPjlGfPqg5+kIR1SVYg9LFXQVGomnQTfEYCP+6rlnqXOPDz 7G08V/NT3CRhcLlOw/+iQXcUkG9C2/+O43EI11G/rahe200ZT9WSvDdSXoROTHA+dOxVDvU4cKB/J n/HekKlQ==; Received: from authenticated user by zero.zsh.org with local id 1loTXy-000NiC-Q7; Wed, 02 Jun 2021 16:16:46 +0000 Authentication-Results: zsh.org; iprev=pass (esa07.ucs.mun.ca) smtp.remote-ip=134.153.136.27; dmarc=none header.from=mun.ca; arc=none Received: from esa07.ucs.mun.ca ([134.153.136.27]:36190) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1loTW7-000MuD-0O; Wed, 02 Jun 2021 16:14:52 +0000 IronPort-SDR: heuEfyVfqluGHTiwoYd9tD67KIoPYujybQXNb5l1MT8pxudW5IKAlHbHsrhKFrl+S3O24LcJFD gnnp5V+mwLd0EheCz8UrsS1LLrvioV6tM3e5OIC5cDgU1W4lVOmsopx+aHM7xdo7f+u7EHDH5X X0PIuW8xAACC5c/84bDE2+3aor1Jm3Xc08tCXePfKwKg65j+diloeGUJ8WB/vxcOJNea6Waiff d26p73o7IKxlefUJwrmfU+xqjesaf8qNOp1d9wkuoYYTGLDaCi44UDx1bT88AwuDs/9FnMHmlP 6wM= IronPort-HdrOrdr: =?us-ascii?q?A9a23=3A96ODI64wSW7ZuUxUXQPXwNXXdLJyesId70?= =?us-ascii?q?hD6qkRc3xom6Oj+PxG8M5w6faWslcssRMb9+xoUZPoKU80nqQY3WB+B9qfdT?= =?us-ascii?q?X9tHDtJI9v6paK+VbdJxE=3D?= X-IronPort-AV: E=Sophos;i="5.83,242,1616466600"; d="scan'208";a="57695458" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from cpe00fc8db7a323-cm00fc8db7a320.cpe.net.cable.rogers.com (HELO pyrope.local) ([174.117.202.255]) by smtp07.ucs.mun.ca with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2021 13:44:46 -0330 User-agent: mu4e 1.5.6; emacs 27.2 From: Roger Mason To: zsh-users@zsh.org Subject: zpasesopts problem Date: Wed, 02 Jun 2021 13:44:44 -0230 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Seq: 26759 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: 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