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 DEE8F81F2B for ; Fri, 2 Dec 2016 06:20:39 -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:20:35 +0800 From: Tim Lewis To: "edk2-devel@lists.01.org" Thread-Topic: [shell] @ does not work before if, endif, for and many other command. Thread-Index: AdJMpq0fzqY7lxBEQ/u/FlWbRfeDKA== Date: Fri, 2 Dec 2016 14:20:34 +0000 Message-ID: <7236196A5DF6C040855A6D96F556A53F410EF4@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] @ does not work before if, endif, for and many other command. 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:20:40 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Try this: :start @if %1 =3D=3D "" then @goto Done @endif @echo Parameter: %1 @shift goto start :Done Per Chapter 4 Also, additional '@' before a command in a script file can prevent the curr= ent command from being echoed.