Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Oct 2015 14:50:05 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r47639 - head/en_US.ISO8859-1/books/porters-handbook/uses
Message-ID:  <201510221450.t9MEo5NQ020596@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Thu Oct 22 14:50:05 2015
New Revision: 47639
URL: https://svnweb.freebsd.org/changeset/doc/47639

Log:
  Enhance the USES=shebangfix section now that the old command is an array
  and not a single entry.
  
  Sponsored by:	Absolight

Modified:
  head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml

Modified: head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml	Thu Oct 22 13:18:05 2015	(r47638)
+++ head/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml	Thu Oct 22 14:50:05 2015	(r47639)
@@ -1147,16 +1147,30 @@ GSSAPI_NONE_CONFIGURE_ON=	--without-gssa
       scripts listed in <varname>SHEBANG_FILES</varname>.  Currently
       <application>Bash</application>,
       <application>Java</application>, <application>Ksh</application>,
+      <application>Lua</application>,
       <application>Perl</application>, <application>PHP</application>,
       <application>Python</application>,
       <application>Ruby</application>, <application>Tcl</application>,
       and <application>Tk</application> are supported by default.  To
       support another interpreter, set
-      <varname>SHEBANG_LANG</varname>, <varname>lua_OLD_CMD</varname>
-      and <varname>lua_CMD</varname>.  For example
-      <literal>SHEBANG_LANG=lua</literal>, then
-      <varname>lua_OLD_CMD=/usr/bin/lua</varname> and
-      <varname>lua_CMD=${LOCALBASE}/bin/lua</varname>.</para>
+      <varname>SHEBANG_LANG</varname>,
+      <varname><replaceable>foo</replaceable>_OLD_CMD</varname> and
+      <varname><replaceable>foo</replaceable>_CMD</varname>.  For
+      example:</para>
+
+    <programlisting>SHEBANG_LANG=	lua
+lua_OLD_CMD=	/usr/bin/lua
+lua_CMD=	${LOCALBASE}/bin/lua</programlisting>
+
+    <para>As <literal><replaceable>foo</replaceable>_OLD_CMD</literal>
+      can contain multiple values, if an entry contains a space, it
+      needs to be quoted.  For example, if it was not already defined,
+      the <application>Ksh</application> entry could be defined
+      as:</para>
+
+    <programlisting>SHEBANG_LANG=	ksh
+ksh_OLD_CMD=	"/usr/bin/env ksh" /bin/ksh /usr/bin/ksh
+ksh_CMD=	${LOCALBASE}/bin/ksh</programlisting>
   </sect1>
 
   <sect1 xml:id="uses-tar">



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510221450.t9MEo5NQ020596>