From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from msmail.insydesw.com.tw (ms.insydesw.com [211.75.113.220]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 9921F81F44 for ; Fri, 2 Dec 2016 06:47:48 -0800 (PST) Received: from msmail.insydesw.com.tw ([fe80::74f7:f173:f4aa:9a05]) by msmail.insydesw.com.tw ([fe80::74f7:f173:f4aa:9a05%11]) with mapi id 14.01.0438.000; Fri, 2 Dec 2016 22:47:46 +0800 From: Tim Lewis To: "edk2-devel@lists.01.org" Thread-Topic: [shell] shift generates errors with no command-line options Thread-Index: AdJMqs1y6mLc/gKcSt2IYwFDbYN8OA== Date: Fri, 2 Dec 2016 14:47:45 +0000 Message-ID: <7236196A5DF6C040855A6D96F556A53F410F1F@msmail.insydesw.com.tw> Accept-Language: en-US, zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [122.146.58.88] MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: [shell] shift generates errors with no command-line options X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2016 14:47:49 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable In a script that looks like this: :start if not %1 =3D=3D "" then echo %1 shift goto start endif 'shift' will generate an error message. The spec doesn't describe any behav= ior like this and it is annoying to write scripts that must avoid it. Of course you can work around it... Tim