From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ZXSHCAS02.zhaoxin.com (unknown [180.169.121.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 938E321E1B757 for ; Thu, 21 Sep 2017 18:19:05 -0700 (PDT) Received: from ZXBJCAS01.zhaoxin.com (10.29.252.3) by ZXSHCAS02.zhaoxin.com (10.28.252.4) with Microsoft SMTP Server (TLS) id 14.3.279.2; Fri, 22 Sep 2017 09:21:57 +0800 Received: from ZXBJMBX01.zhaoxin.com ([fe80::9c2b:e4e8:b7de:a5de]) by ZXBJCAS01.zhaoxin.com ([::1]) with mapi id 14.03.0279.002; Fri, 22 Sep 2017 09:21:55 +0800 From: Tiger Liu To: "Carsey, Jaben" , "Jim.Dailey@dell.com" CC: "edk2-devel@lists.01.org" Thread-Topic: [edk2] Shell input redirection question Thread-Index: AdMzQRnhFPTDwrJlSQifKtJvfKgNNw== Date: Fri, 22 Sep 2017 01:21:54 +0000 Message-ID: <1E4DA6F54C53C24B98E8E8D172B945AF02B713F5@ZXBJMBX01.zhaoxin.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.29.24.43] MIME-Version: 1.0 Subject: Re: Shell input redirection question X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Sep 2017 01:19:06 -0000 Content-Language: zh-CN Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SGksIEFsbDoNClRoYW5rcyBmb3IgeW91ciBzdWdnZXN0aW9ucy4NCkFwcHJlY2lhdGUgaXQuDQoN ClRoYW5rcw0KDQpiZXN0IHdpc2hlcywNCi0tLS0t6YKu5Lu25Y6f5Lu2LS0tLS0NCuWPkeS7tuS6 ujogQ2Fyc2V5LC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