From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web11.20406.1581471042620797393 for ; Tue, 11 Feb 2020 17:30:42 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=qi8V3zDx; spf=pass (domain: intel.com, ip: 192.55.52.120, mailfrom: jaben.carsey@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Feb 2020 17:30:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,428,1574150400"; d="scan'208";a="237567049" Received: from orsmsx103.amr.corp.intel.com ([10.22.225.130]) by orsmga006.jf.intel.com with ESMTP; 11 Feb 2020 17:30:41 -0800 Received: from ORSEDG002.ED.cps.intel.com (10.7.248.5) by ORSMSX103.amr.corp.intel.com (10.22.225.130) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 11 Feb 2020 17:30:41 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.171) by edgegateway.intel.com (134.134.137.101) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 11 Feb 2020 17:30:41 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Rs9ntBCA+ccQ97vgYe48Qs31ek3qDMRK2PD6PBzEghmkgOqJTl7343RyMajgx28rzGogpOTQWK0oMa3jA3kDBM4ChrJdnqazUcRElg6cxb9VFcH9qpoKtOBUdQUXOkIbrPDJEBDvN/z47BETODs6LkqRVqexOV1sFlTaoY4OIkyeS/ljjYXq3ywEqVUiIqUc6DxitOEvePe3fVvKDsknjnrr6EgB9kBRA2wOe7+UKb5erJgM8incQX77TvIkV84KTj6XOMMEn7P3flZeEaxht7rQLm5b577M0oLc/Ie5uaoYr15OF61+Y+HYnGG1QCLUvRwrHTS6QTlJZMJvKhDsqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CuGfrxExs2SE6OxfwDR7xYvltRMJI3iyckWymu/2JaY=; b=dgkR/+zWmMzzoc+Lo0ngUaiU6g122PTLtpQsdnajGtIWQfjAxCJueznv6QrtZmIvszhc7ORVLZxQ00DFpDfAaG3/97Nl3oKKi1kFu8RepnbUE+Z95MgHOtmw4R8nXYjxhwR5jTf0i6F4gJraxh9V9dD52jyyrpS+P2oZ/XGrfXYBzcg4v2/pGycOCch5r+ReZIV8OytaGDVo8WzoAy7b1XZsUm3VDlxPOka9l2R9hcJ5JeK+ND8IzvVePQWwgh07giZ6Od7QKq0vCxUZQPAhcBTfpgDZSpEiDvOggMiI/42hZeKlKEIUTgSYY7oiHOsNh4W1QWtVXZDvBWpWeekPGg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CuGfrxExs2SE6OxfwDR7xYvltRMJI3iyckWymu/2JaY=; b=qi8V3zDxmkXsYjxVOMc44iyuDWjxR++tlTI6mUTScANpbwEF6OjY9vF1Ixgl9u56ot0sz9h991BWooYs/x+i9kSgixpME1gusOUJsmOtrYzysC601Faot8v+4DNlVh9jyenn8nNAooLA+M5ITMNGBfU9rW2yjqVXZpeSxVZS+wM= Received: from BY5PR11MB4007.namprd11.prod.outlook.com (10.255.161.92) by BY5PR11MB4054.namprd11.prod.outlook.com (10.255.161.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2707.29; Wed, 12 Feb 2020 01:30:40 +0000 Received: from BY5PR11MB4007.namprd11.prod.outlook.com ([fe80::85be:642c:50ee:b74b]) by BY5PR11MB4007.namprd11.prod.outlook.com ([fe80::85be:642c:50ee:b74b%7]) with mapi id 15.20.2707.030; Wed, 12 Feb 2020 01:30:40 +0000 From: "Carsey, Jaben" To: "devel@edk2.groups.io" , "jim.dailey@dell.com" CC: "tim.lewis@insyde.com" , "afish@apple.com" Subject: Re: [edk2-devel] Shell feature? Thread-Topic: [edk2-devel] Shell feature? Thread-Index: AQHV4E5yW5e5Ed9BJkysnwkpxKP5aKgWcwKAgAARe4CAAECrQA== Date: Wed, 12 Feb 2020 01:30:23 +0000 Deferred-Delivery: Wed, 12 Feb 2020 01:30:00 +0000 Message-ID: References: <003b01d5e119$d2806700$77813500$@insyde.com> <9e939668b35c41feabb0b2590577dcfd@ausx13mps335.AMER.DELL.COM> In-Reply-To: <9e939668b35c41feabb0b2590577dcfd@ausx13mps335.AMER.DELL.COM> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Enabled=True; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_SiteId=945c199a-83a2-4e80-9f8c-5a91be5752dd; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Owner=JIM_DAILEY@dell.com; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_SetDate=2020-02-11T21:29:41.3515803Z; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Name=External Public; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Application=Microsoft Azure Information Protection; MSIP_Label_17cb76b2-10b8-4fe1-93d4-2202842406cd_Extended_MSFT_Method=Manual; aiplabel=External Public x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNjkzOWE3NTAtY2VlMS00MGNkLWIzNWItNmRiYzIwMGRlODc5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiZG1uZmpqUmxyMFRXek50aENrVmtzTXFuXC9cLzF0TWJDSjJiOVJIUHpLOXBRdzl4aDRLdzlsSFpqaEMybmwwM1RWIn0= dlp-reaction: no-action dlp-version: 11.2.0.6 dlp-product: dlpe-windows x-ctpclassification: CTP_NT authentication-results: spf=none (sender IP is ) smtp.mailfrom=jaben.carsey@intel.com; x-originating-ip: [192.55.52.207] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8d0f3a77-ea1d-40c5-4cf1-08d7af5b2b90 x-ms-traffictypediagnostic: BY5PR11MB4054: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 0311124FA9 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(396003)(376002)(39860400002)(346002)(136003)(189003)(199004)(7696005)(66556008)(81156014)(66446008)(71200400001)(33656002)(66476007)(81166006)(6666004)(64756008)(9686003)(8936002)(76116006)(2906002)(66946007)(8676002)(55016002)(86362001)(478600001)(110136005)(54906003)(53546011)(6506007)(52536014)(316002)(186003)(4326008)(966005)(5660300002)(26005);DIR:OUT;SFP:1102;SCL:1;SRVR:BY5PR11MB4054;H:BY5PR11MB4007.namprd11.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PVAXQdmDP8539XZ9pJrvQGHOaIRJCriOnD+1GOAoJRmnJPnHpQxAvn1kjPNS9fnuca4YrBlyguWfgLRi1Lbuv+1MKotViydstfwpTrnWk9f3dI5fptFSMS/WhgiWlwa+JwORDYLAh/m8Xg4SrFJ+7IN/Y0l0mXmuLD5DpY5o0dhROFGFurMXcncXp3vG1q6VE1V4EELtod1dWB8H31ZWc7HwJOxTMvIMlFPpKby2PluF7CU63M99AUwHTCluCLHG0LZFVBaNz8/uUp01XXSHg8LLgvLGvvNpONycCt77pBgvgYgU9303GDBtkx611tGB0LPtvu3Pg3CfPJOmLqYfIorTvDOexWItfu5ahK57bmuce6TN/SY0mGn1NCokjCmfcVNTD0+wDHt7edlP3u8kGFULa5sWENj6YpnszGfajIN3ftE2jM/B5LyUPeqloYmwT5qWY17B8gLGuBRtCl7I3bTb9RYCmbizuUWuv0+cdIaU9gFaT8Iq3zafVK2A/ruGQ5icjMtpk3z97HTQXtyjqA== x-ms-exchange-antispam-messagedata: vFn90TzXh9uEuDS2rIBstJ1S+CsBmvzwy/W7RoWpSEb4rbBZ8zLWAxSC/2FZI6ARkN0A3VJJoZjSh42c8czoxAkH+sE6eHMuzDazm0XHPY5wH/5dJcuHSY//iY4jNRhjTg117D36SaCkOMgM4ei3Dg== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 8d0f3a77-ea1d-40c5-4cf1-08d7af5b2b90 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Feb 2020 01:30:40.2617 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: CPaCGv2Cn0/OCQQj2bDMC2PVKM9ebBIY0MMXReYvxRIUmIlKS46pmnBNX5ff/v9bG7iWnMWA+ov+TAPvQJj6HQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB4054 Return-Path: jaben.carsey@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Andrew You can already add a command via a driver (including a driver's library).= Check into the Dynamic Commands in the shell spec. Associating a file type with a command, basically if the first thing on th= e command line is a file of that type, then prepend the command and re-proc= ess the line, is very doable. It's almost like the alias feature that alrea= dy exists. I do agree with Tim that we should do a spec update, but concurrent develo= pment of code and spec seems required to prevent re-doing the spec. -Jaben > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Jim > Dailey > Sent: Tuesday, February 11, 2020 1:31 PM > To: devel@edk2.groups.io > Cc: tim.lewis@insyde.com; afish@apple.com > Subject: Re: [edk2-devel] Shell feature? >=20 > Andrew, >=20 > Granted such a feature would be nice, but it seems like it might be a fa= ir > amount of trouble just to avoid typing "python3", which could be aliased= to > something as short a "p". >=20 > Jim >=20 > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Tim > Lewis > Sent: Tuesday, February 11, 2020 2:28 PM > To: devel@edk2.groups.io; afish@apple.com > Subject: Re: [edk2-devel] Shell feature? >=20 >=20 > [EXTERNAL EMAIL] >=20 > Andrew -- >=20 > I think this is a good idea, but I think this is probably a shell spec i= ssue > because I don't want competing, incompatible implementations. >=20 > A few other issues: I think there is a persistence issue (similar to she= ll > variables) so that the change could be installed and survive a reboot. I= also > think there can be a simple shell command that manages extensions (so th= at > they can be installed by a script) >=20 > Tim >=20 > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Andrew > Fish via Groups.Io > Sent: Monday, February 10, 2020 12:12 PM > To: devel@edk2.groups.io > Subject: [edk2-devel] Shell feature? >=20 > I wanted to start a conversation on the mailing list prior to writing up= a BZ, to > make sure I'm not missing anything, or in case there is a better way to > implement this. >=20 > I was thinking it would be good to have a Shell API that lets you associ= ate a > file type with an internal or external shell command. The Idea would be = to > pre-pend the internal/external shell command to the file name and also p= ass > the arguments. >=20 > So this: > fs0:>dump.py 1 2 3 >=20 > Becomes: > fs0:>python3.efi dump.py 1 2 3 >=20 > Basically you just need an API like: >=20 > ShellAddScriptingLanguage (L".py", L"python3.efi"); >=20 > Seems like this could just plug into the Shell via a ShellExecute(). So = for > example you could make Python a UEFI Shell command via a library and tha= t > library constructor could also teach the shell that a .py file could be = an > executable? >=20 > Thanks, >=20 > Andrew Fish >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20