From owner-svn-src-head@freebsd.org Fri Feb 9 00:36:56 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 22D8FF13C02; Fri, 9 Feb 2018 00:36:56 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CE86787C46; Fri, 9 Feb 2018 00:36:55 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C947B1D8A7; Fri, 9 Feb 2018 00:36:55 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w190atmv064447; Fri, 9 Feb 2018 00:36:55 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w190atVK064445; Fri, 9 Feb 2018 00:36:55 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201802090036.w190atVK064445@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Fri, 9 Feb 2018 00:36:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329054 - head/stand/common X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/stand/common X-SVN-Commit-Revision: 329054 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Feb 2018 00:36:56 -0000 Author: imp Date: Fri Feb 9 00:36:55 2018 New Revision: 329054 URL: https://svnweb.freebsd.org/changeset/base/329054 Log: Set script.lang in the environment to either 'forth' or 'simple' to reflect what scripting language was compiled into the loader. I anticipate that being able to find this out quickly from the OK prompt will be useful in troubleshooting in the future. Modified: head/stand/common/interp_forth.c head/stand/common/interp_simple.c Modified: head/stand/common/interp_forth.c ============================================================================== --- head/stand/common/interp_forth.c Fri Feb 9 00:13:05 2018 (r329053) +++ head/stand/common/interp_forth.c Fri Feb 9 00:36:55 2018 (r329054) @@ -337,6 +337,7 @@ void interp_init(void) { + setenv("script.lang", "forth", 1); bf_init(); /* Read our default configuration. */ interp_include("/boot/loader.rc"); Modified: head/stand/common/interp_simple.c ============================================================================== --- head/stand/common/interp_simple.c Fri Feb 9 00:13:05 2018 (r329053) +++ head/stand/common/interp_simple.c Fri Feb 9 00:36:55 2018 (r329054) @@ -39,6 +39,7 @@ void interp_init(void) { + setenv("script.lang", "simple", 1); /* Read our default configuration. */ interp_include("/boot/loader.rc"); }