From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 0415981F62 for ; Thu, 26 Jan 2017 08:59:43 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 26 Jan 2017 08:59:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,290,1477983600"; d="scan'208";a="1087608845" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga001.jf.intel.com with ESMTP; 26 Jan 2017 08:59:42 -0800 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 26 Jan 2017 08:59:42 -0800 Received: from fmsmsx103.amr.corp.intel.com ([169.254.2.47]) by FMSMSX109.amr.corp.intel.com ([169.254.15.41]) with mapi id 14.03.0248.002; Thu, 26 Jan 2017 08:59:42 -0800 From: "Carsey, Jaben" To: "Ni, Ruiyu" , "edk2-devel@lists.01.org" CC: Chris J Phillips , Tapan Shah , "Carsey, Jaben" Thread-Topic: [PATCH] ShellPkg/cd: Do not print the destination dir when CD exits Thread-Index: AQHSd4113uSlkRiuh0+FnfMxxNsCPaFK/AqA Date: Thu, 26 Jan 2017 16:59:41 +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: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiODZkZjUwOTktMWE3Ny00M2E0LWFhYjktZjE0YTdmZjdhYTAzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6Im90cXV3THFaSnAxeFp4SUQ0UFRXQzVLXC95NCtxS2FydFQxNEFpS3kwWnhFPSJ9 x-ctpclassification: CTP_IC x-originating-ip: [10.1.200.107] MIME-Version: 1.0 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 16:59:43 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jaben Carsey > -----Original Message----- > From: Ni, Ruiyu > Sent: Wednesday, January 25, 2017 8:34 PM > To: edk2-devel@lists.01.org > Cc: Carsey, Jaben ; Chris J Phillips > ; Tapan Shah > Subject: [PATCH] ShellPkg/cd: Do not print the destination dir when CD ex= its > Importance: High >=20 > 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 > directory. >=20 > This patch changes CD to never print destination directory. >=20 > 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(-) >=20 > diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Cd.c > b/ShellPkg/Library/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 reserved.
> This program and the accompanying materials > are licensed and made available under the terms and conditions of the = BSD > License > which accompanies this distribution. The full text of the license may= be > 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), > gShellLevel2HiiHandle, ShellGetCurrentDir(Drive)); > } > } > } > -- > 2.9.0.windows.1