Re: [dev] Some core tools

From: Greg Reagle <greg.reagle_AT_umbc.edu>
Date: Thu, 02 Feb 2017 19:01:30 -0500

On Thu, Feb 2, 2017, at 18:44, Mattias Andrée wrote:
> Also, I think mk(1) uses rc(1), right?

          The variable MKSHELL contains the shell command line mk uses
          to run recipes. If the first word of the command ends in rc
          or rcsh, mk uses rc(1)'s quoting rules; otherwise it uses
          sh(1)'s. The MKSHELL variable is consulted when the mkfile
          is read, not when it is executed, so that different shells
          can be used within a single mkfile:

               MKSHELL=$PLAN9/bin/rc
               use-rc:V:
                    for(i in a b c) echo $i

               MKSHELL=sh
               use-sh:V:
                    for i in a b c; do echo $i; done
Received on Fri Feb 03 2017 - 01:01:30 CET

This archive was generated by hypermail 2.3.0 : Fri Feb 03 2017 - 01:12:13 CET