svn commit: r47639 - head/en_US.ISO8859-1/books/porters-handbook/uses

Mathieu Arnold <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
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">
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.