From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-00154904.pphosted.com (mx0b-00154904.pphosted.com [148.163.137.20]) by mx.groups.io with SMTP id smtpd.web10.16879.1581456664604477757 for ; Tue, 11 Feb 2020 13:31:05 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@dell.com header.s=smtpout1 header.b=FBJ+CwIY; spf=pass (domain: dell.com, ip: 148.163.137.20, mailfrom: jim.dailey@dell.com) Received: from pps.filterd (m0170397.ppops.net [127.0.0.1]) by mx0b-00154904.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01BLD6QH002815 for ; Tue, 11 Feb 2020 16:31:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=smtpout1; bh=dPP01b3UoH+cp+cUQ5v/CNKunsdH7pY0nl+mO9fRmC8=; b=FBJ+CwIY3uAsCoVmxR0TLSFnMnXTseUETvW2QZwxea7RweHo1KmlOf8oZfkPTAsFHAxn jnVyxYcXcn2I/NnVvpHuCJ/RDRLdGDEFH/vaIWFEGfCVZs8bFF6ViJ0Gx1ZQgjIv7iIf LjrJQmyQkikpjS/4dq0l2kFK+AvcaLn0FDZWf6aY0Djf3Pg+3jxzTSmjnBmt5QbZ3QFe OQjfP+VcatFTG5aItIRMhNsjkpAgKvK4qYd/ODsDfySudZuEsJf1P3nBuhgjo1xntbiw Zm1W6KY9IOdwIUrbolQywbn0PZJZryrqqJmfm/1FZmfSSDC8F6NdqjiRct+Sw2fqw5xR cg== Received: from mx0a-00154901.pphosted.com (mx0a-00154901.pphosted.com [67.231.149.39]) by mx0b-00154904.pphosted.com with ESMTP id 2y1qn5dtg8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 11 Feb 2020 16:31:03 -0500 Received: from pps.filterd (m0090351.ppops.net [127.0.0.1]) by mx0b-00154901.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01BLIT6G068198 for ; Tue, 11 Feb 2020 16:31:02 -0500 Received: from ausxipps310.us.dell.com (AUSXIPPS310.us.dell.com [143.166.148.211]) by mx0b-00154901.pphosted.com with ESMTP id 2y1t7kyv8d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 11 Feb 2020 16:31:02 -0500 X-LoopCount0: from 10.166.136.212 X-PREM-Routing: D-Outbound X-IronPort-AV: E=Sophos;i="5.60,349,1549951200"; d="scan'208";a="481797474" From: "Jim Dailey" To: CC: , Subject: Re: [edk2-devel] Shell feature? Thread-Topic: [edk2-devel] Shell feature? Thread-Index: AQLckwiH9sd6gtLMjLsNUxX3LGj6YaYJDJ8AgAAQkhA= Date: Tue, 11 Feb 2020 21:30:59 +0000 Message-ID: <9e939668b35c41feabb0b2590577dcfd@ausx13mps335.AMER.DELL.COM> References: <003b01d5e119$d2806700$77813500$@insyde.com> In-Reply-To: <003b01d5e119$d2806700$77813500$@insyde.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-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.143.18.86] MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-11_06:2020-02-11,2020-02-11 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 priorityscore=1501 lowpriorityscore=0 malwarescore=0 adultscore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 bulkscore=0 impostorscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002110138 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 adultscore=0 suspectscore=0 phishscore=0 impostorscore=0 priorityscore=1501 mlxlogscore=999 clxscore=1015 mlxscore=0 malwarescore=0 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002110138 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Andrew, Granted such a feature would be nice, but it seems like it might be a fair amount of trouble just to avoid typing "python3", which could be aliased to something as short a "p". Jim -----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? [EXTERNAL EMAIL]=20 Andrew -- I think this is a good idea, but I think this is probably a shell spec iss= ue because I don't want competing, incompatible implementations. A few other issues: I think there is a persistence issue (similar to shell 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 that they can be installed by a script) Tim -----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? 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 wa= y to implement this.=20 I was thinking it would be good to have a Shell API that lets you associat= e 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 pas= s the arguments. So this: fs0:>dump.py 1 2 3 Becomes: fs0:>python3.efi dump.py 1 2 3 Basically you just need an API like: ShellAddScriptingLanguage (L".py", L"python3.efi"); Seems like this could just plug into the Shell via a ShellExecute(). So fo= r example you could make Python a UEFI Shell command via a library and that library constructor could also teach the shell that a .py file could be an executable? Thanks, Andrew Fish