From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0725.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe48::725]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id AD9AF81FA8 for ; Thu, 26 Jan 2017 06:51:39 -0800 (PST) Received: from CS1PR84MB0229.NAMPRD84.PROD.OUTLOOK.COM (10.162.190.151) by CS1PR84MB0134.NAMPRD84.PROD.OUTLOOK.COM (10.162.189.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Thu, 26 Jan 2017 14:51:38 +0000 Received: from CS1PR84MB0229.NAMPRD84.PROD.OUTLOOK.COM ([10.162.190.151]) by CS1PR84MB0229.NAMPRD84.PROD.OUTLOOK.COM ([10.162.190.151]) with mapi id 15.01.0860.023; Thu, 26 Jan 2017 14:51:37 +0000 From: "Shah, Tapan" To: Ruiyu Ni , "edk2-devel@lists.01.org" CC: Jaben Carsey , "Phillips, Chris J (Plano, TX)" Thread-Topic: [PATCH] ShellPkg/cd: Do not print the destination dir when CD exits Thread-Index: AQHSd42B7phH0JxtaEaRvGqtr9L+5qFK2BmQ Date: Thu, 26 Jan 2017 14:51:37 +0000 Message-ID: References: <20170126043407.357464-1-ruiyu.ni@intel.com> In-Reply-To: <20170126043407.357464-1-ruiyu.ni@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=tapandshah@hpe.com; x-originating-ip: [15.203.227.12] x-microsoft-exchange-diagnostics: 1; CS1PR84MB0134; 7:GPvE1BW+HAxjGvwaCnspeDIDXHtOTY6lROLm17EOEGfZ4n6KsqZTmp/n1v70VwjG+12cgkHp909daEiTIPeA54mTsShv5FsaCS9M8zoeUWa15TCeXTHArRcVucrKNdwihEZZqQs7nYkPuzTIbQZuS7LJr3WTpXblUgblw3AoCf6EsyCc2dA6BclAzNrKP/Knp/GVnVSx29CLG4PF4mp61kLcSzSJwA4IkPdJBW2N6+CDF9F6ZxWPBDtTmbmpKKM57NxukwxlxtLxhPvcBZViMoRkRZ2YD8TYwmrAd/ahoUUUh1hXw/DFlo8EBmiW/3BYsKxXMPYM5fosHy3DH3hShrv3vo0jMGHjv2F/FIpOfdao+KJMBUytI0HsQp4ze0HxWPsZYdzlrV6CBc7tCWd2LpvahshpFzgcYiuurPbjHwWPUq99QApmgF/YxnFznES4nhiGeWhoRQTv87UFr8pAlw== x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39860400002)(39840400002)(39450400003)(39850400002)(39410400002)(377454003)(199003)(13464003)(189002)(9686003)(305945005)(3660700001)(55016002)(5660300001)(54906002)(2950100002)(86362001)(2906002)(2900100001)(81166006)(8936002)(189998001)(81156014)(3846002)(7736002)(6116002)(102836003)(92566002)(4326007)(8676002)(5001770100001)(77096006)(97736004)(101416001)(3280700002)(33656002)(68736007)(54356999)(122556002)(66066001)(50986999)(74316002)(7696004)(76176999)(106356001)(6436002)(53936002)(106116001)(38730400001)(229853002)(105586002)(2501003)(6506006)(19627235001); DIR:OUT; SFP:1102; SCL:1; SRVR:CS1PR84MB0134; H:CS1PR84MB0229.NAMPRD84.PROD.OUTLOOK.COM; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; x-ms-office365-filtering-correlation-id: cf0bf311-e799-46c2-45d8-08d445fad4ba x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CS1PR84MB0134; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(227479698468861)(162533806227266)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123564025)(20161123562025)(20161123560025)(20161123555025)(6072148); SRVR:CS1PR84MB0134; BCL:0; PCL:0; RULEID:; SRVR:CS1PR84MB0134; x-forefront-prvs: 019919A9E4 received-spf: None (protection.outlook.com: hpe.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: hpe.com X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jan 2017 14:51:37.7278 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR84MB0134 Subject: Re: [PATCH] ShellPkg/cd: Do not print the destination dir when CD exits 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: Thu, 26 Jan 2017 14:51:39 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Tapan Shah -----Original Message----- From: Ruiyu Ni [mailto:ruiyu.ni@intel.com]=20 Sent: Wednesday, January 25, 2017 10:34 PM To: edk2-devel@lists.01.org Cc: Jaben Carsey ; Phillips, Chris J (Plano, TX) ; Shah, Tapan Subject: [PATCH] ShellPkg/cd: Do not print the destination dir when CD exit= s Before the "cd fs0:dir" fix, CD only prints destination directory when the = destination contains ":". However, the "cd fs0:dir" fix changed CD to always print destination direct= ory. This patch changes CD to never print destination directory. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Cc: Jaben Carsey Cc: Chris J Phillips Cc: Tapan Shah --- ShellPkg/Library/UefiShellLevel2CommandsLib/Cd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Cd.c b/ShellPkg/Li= brary/UefiShellLevel2CommandsLib/Cd.c index d459a7a..dd4a740 100644 --- a/ShellPkg/Library/UefiShellLevel2CommandsLib/Cd.c +++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/Cd.c @@ -3,7 +3,7 @@ =20 (C) Copyright 2016 Hewlett Packard Enterprise Development LP
(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
- Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2017, Intel Corporation. All rights=20 + reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BS= D License which accompanies this distribution. The full text of the license may b= e found at @@ -321,8 +321,6 @@ ShellCommandRunCd ( if (EFI_ERROR (Status)) { ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN(STR_GEN_DIR_NF),= gShellLevel2HiiHandle, L"cd", Param1Copy); ShellStatus =3D SHELL_NOT_FOUND; - } else { - ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN(STR_CD_PRINT), g= ShellLevel2HiiHandle, ShellGetCurrentDir(Drive)); } } } -- 2.9.0.windows.1