9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Bengt Kleberg <bengt.kleberg@ericsson.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] acme, rio workalike available in plan 9 ports
Date: Mon, 19 Apr 2004 10:04:44 +0000	[thread overview]
Message-ID: <c5gnbd$t3m$1@newstree.wise.edt.ericsson.se> (raw)
In-Reply-To: <406D7906.3030701@swtch.com>

Russ Cox wrote:
> 
>> i would conjecture that we have not one, but two ''mk''.
>> one from mk-20040301.tgz that is of interest to a unix user that wants 
>> a new ''make'', but is not interested in plan9. this mk does not need 
>> to use ''rc''.
> 
> 
> 
> these are the same mk, built from the same sources.

you are ofcourse correct. i was beeing very fuzzy in my writing here. i 
was not thinking of ''mk, the implementation'', but more of ''mk, the 
program the user interfaces too''.


>> the other ''mk'' is the one in plan9-20040321.tar.gz. this mk will be 
>> used by someone interested in plan9. i belive that this mk should use 
>> rc. if rc is not stable enough it should be made stable enough.
> 
> 
> 
> in an ideal world, where there is more time for such things.
> it is slowly becoming stable enough.  there is some funniness
> with process groups and backgrounded processes and interrupt
> notes that i have yet to work out, but otherwise it is now fine.

is it ok to interpret this to mean that rc is good enough to be used as 
the shell in mk?


>> since it is never a good idea to have different commands with the same 
>> name (provided we have the same context. in this case unix) i suggest 
>> that one of the two mk are renamed. the one to rename, imho, is the 
>> one that uses sh. possible names would be: smk, umk (or mks, mku).
> 
> 
> 
> it's the same tool, just using a different shell.  renaming it seems 
> quite weird.
> should it read umkfile too?  the last thing we need is for mk to bifurcate
> into odd variants just like make has.

i fully agree. it was this kind of problem that made me raise the 
question in the first place. i think mk using sh is an odd variant. i 
think of mk as using rc. this is also why i decided it would be best 
(for me) to penalise old mk-on-unix users (the ones already using sh).


> there is historical precedent for mk on unix using sh.  i'm not claiming it
> should, just that it's not obviously wrong.
> 
> there are non-plan 9 users who use mk on unix and expect it to use sh.
> telling them that all of a sudden they have to rename their mkfiles and
> start typing umk is odd.

this is true. however, how large a user base is neccessary to stop 
progress in the name of backwards compatibility?


> i have some ideas about how to solve the problem without splitting mk,
> but at the moment it's not very high on my list.  the number of recipes
> i write that aren't simultaneously valid rc and valid sh is very small.

a kitchen sink approach would be for mk to recognise sh or rc recipes, 
and handle them accordingly.
another solution would be for mk to check for $PLAN9, and then use rc
but mostly this would mean mkfiles that sometimes work, and sometimes 
does not work.
we could call mk-with-rc for rmk, mk9, ...
or use ''mk -r[c]''.

i will use mk instead of make, even if you decide to keep sh.


bengt


  parent reply	other threads:[~2004-04-19 10:04 UTC|newest]

Thread overview: 102+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-21  4:51 Russ Cox
2004-03-21 21:03 ` andrey mirtchovski
2004-03-22 16:30 ` Axel Belinfante
2004-03-23  9:59   ` Bengt Kleberg
2004-03-23 12:23     ` boyd, rounin
2004-03-23 13:17       ` David Presotto
2004-03-23 13:30         ` boyd, rounin
2004-03-23 15:04           ` Fco.J.Ballesteros
2004-03-23 15:39         ` a
2004-03-23 15:09     ` Russ Cox
2004-03-23 15:12       ` Charles Forsyth
2004-03-23 15:29         ` Russ Cox
2004-03-23 15:13       ` Charles Forsyth
2004-03-23 15:39       ` Axel Belinfante
2004-03-23 15:49         ` a
2004-03-23 16:23           ` Russ Cox
2004-03-23 16:27             ` Axel Belinfante
2004-03-23 16:54             ` a
2004-04-01 10:50             ` Bengt Kleberg
2004-04-01 13:24               ` Russ Cox
2004-04-01 13:54                 ` Scott Schwartz
2004-04-01 14:33                   ` boyd, rounin
2004-04-01 16:14                   ` Russ Cox
2004-04-01 15:25                     ` boyd, rounin
2004-04-02  9:29                 ` Bengt Kleberg
2004-04-02 10:09                   ` Bengt Kleberg
2004-04-02 11:15                     ` Steve Simon
2004-04-02 15:24                       ` boyd, rounin
2004-04-19 10:04                       ` Bengt Kleberg
2004-04-02 11:55                     ` C H Forsyth
2004-04-02 14:30                   ` Russ Cox
2004-04-02 14:53                     ` C H Forsyth
2004-04-19 10:04                     ` Bengt Kleberg [this message]
2004-04-19 11:07                       ` Steve Simon
2004-04-20  8:38                         ` Bengt Kleberg
2004-04-20 12:12                           ` boyd, rounin
2004-04-20 12:20                             ` lucio
2004-04-20 12:32                               ` boyd, rounin
2004-04-20 12:58                                 ` lucio
2004-04-20 13:03                                   ` lucio
2004-04-21  9:03                                   ` Bengt Kleberg
2004-04-21  9:17                                     ` Charles Forsyth
2004-04-21  9:02                               ` Bengt Kleberg
2004-04-21  9:02                             ` Bengt Kleberg
2004-04-21  9:28                               ` lucio
2004-04-21 13:53                               ` boyd, rounin
2004-04-19 15:00                       ` Russ Cox
2004-04-19 18:51                         ` boyd, rounin
2004-04-20  8:38                         ` Bengt Kleberg
2004-04-20 12:15                           ` boyd, rounin
2004-04-20 14:56                             ` ron minnich
2004-04-20 17:43                               ` Eli Collins
2004-04-20 15:51                                 ` ron minnich
2004-04-20 17:10                                   ` jmk
2004-04-20 17:34                                     ` Eli Collins
2004-04-20 17:39                                       ` jmk
2004-04-20 19:42                                         ` boyd, rounin
2004-04-20 19:09                                     ` ron minnich
2004-04-20 16:10                                 ` Charles Forsyth
2004-04-20 16:21                                   ` ron minnich
2004-04-20 16:40                                   ` Eli Collins
2004-04-20 19:31                                     ` boyd, rounin
2004-04-20 19:20                                 ` boyd, rounin
2004-03-24 10:42         ` Axel Belinfante
2004-03-21  5:07 Noah Evans
2004-03-21  5:25 ` Russ Cox
2004-03-21  6:12 ` Scott Schwartz
2004-03-21 14:02   ` Russ Cox
2004-03-21 15:57 Noah Evans
2004-03-21 20:43 Andrey S. Kukhar
2004-03-21 21:45 Noah Evans
2004-03-21 22:15 ` andrey mirtchovski
2004-04-20 23:04 boyd, rounin
2004-04-20 23:18 ` matt
2004-04-20 23:26   ` Geoff Collyer
2004-04-20 23:28     ` boyd, rounin
2004-04-20 23:48     ` matt
2004-04-20 23:59       ` Charles Forsyth
2004-04-21  3:18         ` Bruce Ellis
2004-04-21  8:51           ` matt
2004-04-21  9:24           ` Charles Forsyth
2004-04-21  9:49           ` C H Forsyth
2004-04-21 12:14           ` boyd, rounin
2004-04-21  0:07     ` Russ Cox
2004-04-21  0:18 ` ron minnich
2004-04-21  0:19   ` boyd, rounin
2004-04-21  2:09     ` ron minnich
2004-04-21  2:20       ` boyd, rounin
2004-04-21  3:43         ` Ronald G. Minnich
2004-04-23  8:55   ` Christoph Hellwig
2004-04-23  8:59     ` boyd, rounin
2004-04-23 15:03     ` ron minnich
2004-04-23 15:29       ` Christoph Hellwig
2004-04-23 15:54         ` ron minnich
2004-04-23 16:20           ` Joel Salomon
2004-04-23 17:03             ` ron minnich
2004-04-23 16:47           ` Christoph Hellwig
2004-04-23 17:04             ` ron minnich
2004-04-23 17:52               ` Christoph Hellwig
2004-04-21  0:40 ` andrey mirtchovski
2004-04-21  3:25   ` Bruce Ellis
2004-04-21  0:38 Charles Forsyth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='c5gnbd$t3m$1@newstree.wise.edt.ericsson.se' \
    --to=bengt.kleberg@ericsson.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).