sam-fans - fans of the sam editor
 help / color / mirror / Atom feed
* 9menu
@ 1994-11-29  3:08 Scott Schwartz
  0 siblings, 0 replies; 8+ messages in thread
From: Scott Schwartz @ 1994-11-29  3:08 UTC (permalink / raw)
  To: Sam Fans

As long as we are being 9fans, how about this:

--- 1.1	1994/11/29 03:02:07
+++ 9menu.c	1994/11/29 03:02:53
@@ -228,7 +228,7 @@
 		return;
 
 	close(ConnectionNumber(dpy));
-	execl("/bin/sh", "sh", "-c", com, NULL);
+	execl("/bin/rc", "rc", "-c", com, NULL);
 	_exit(1);
 }
 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 9menu
@ 1994-11-30 15:59 Arnold Robbins
  0 siblings, 0 replies; 8+ messages in thread
From: Arnold Robbins @ 1994-11-30 15:59 UTC (permalink / raw)
  To: sam-fans

>| == Rob
>  == Scott

> | i disagree: the SHELL variable is conventionally just what you want:
> | an indication of what interactive shell the user desires. the argument
> | about make is spurious because make's functioning requires a
> | standard shell; 9menu is for interactive applications, a different
> | subject entirely.
> 
> That's the crucial point: is 9menu itself an interactive application,
> or is it a tool that that should support a standard syntax?  My
> impression is that the latter is the more useful view, because it
> permits users to exchange 9menu command lines without depending upon
> which interactive shell each of them uses.

I have to admit that this is mostly how I envision 9menu, as a tool, not an
interactive application. (It's interactive through the mouse, but that's
orthogonal to the issue here.)  My own expectation is that 9menu commands
would run shell scripts that execute the larger tasks, and those scripts
can be in any shell you like, via !#.  This has the major advantage that
you can edit the shell script without having to restart 9menu each time.

I haven't completely decided yet how to deal with this. I'm semi-leaning
towards a command line option -shell, instead of $SHELL.

Arnold


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 9menu
  1994-11-29 17:10 9menu rob
@ 1994-11-30  1:22 ` Scott Schwartz
  0 siblings, 0 replies; 8+ messages in thread
From: Scott Schwartz @ 1994-11-30  1:22 UTC (permalink / raw)
  To: rob; +Cc: sam-fans


| i disagree: the SHELL variable is conventionally just what you want:
| an indication of what interactive shell the user desires. the argument
| about make is spurious because make's functioning requires a
| standard shell; 9menu is for interactive applications, a different
| subject entirely.

That's the crucial point: is 9menu itself an interactive application,
or is it a tool that that should support a standard syntax?  My
impression is that the latter is the more useful view, because it
permits users to exchange 9menu command lines without depending upon
which interactive shell each of them uses.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 9menu
@ 1994-11-29 17:10 rob
  1994-11-30  1:22 ` 9menu Scott Schwartz
  0 siblings, 1 reply; 8+ messages in thread
From: rob @ 1994-11-29 17:10 UTC (permalink / raw)
  To: sam-fans

i disagree: the SHELL variable is conventionally just what you want:
an indication of what interactive shell the user desires. the argument
about make is spurious because make's functioning requires a
standard shell; 9menu is for interactive applications, a different
subject entirely.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 9menu
@ 1994-11-29 17:09 Arnold Robbins
  0 siblings, 0 replies; 8+ messages in thread
From: Arnold Robbins @ 1994-11-29 17:09 UTC (permalink / raw)
  To: Scott Schwartz; +Cc: Sam Fans

> | That's not unreasonable, what I should probably do is fix 9menu to
> | just use ${SHELL:-/bin/sh}. 
> 
> I don't know... Isn't it better to have a definate syntax that 9menu
> will use, rather than have it depend on some environment variable?
> (Think about makefiles that need SHELL=/bin/sh at the top to get around
> some versions of make doing this.)  If anything, a command line option
> is better than importing SHELL, I think.

I agree, a command line option is better. Again, patches welcome, if not
I'll try to tackle it over the next week or so.

Arnold


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 9menu
  1994-11-29 15:10 9menu Arnold Robbins
@ 1994-11-29 16:10 ` Scott Schwartz
  0 siblings, 0 replies; 8+ messages in thread
From: Scott Schwartz @ 1994-11-29 16:10 UTC (permalink / raw)
  To: Arnold Robbins; +Cc: Sam Fans, arnold

| That's not unreasonable, what I should probably do is fix 9menu to
| just use ${SHELL:-/bin/sh}. 

I don't know... Isn't it better to have a definate syntax that 9menu
will use, rather than have it depend on some environment variable?
(Think about makefiles that need SHELL=/bin/sh at the top to get around
some versions of make doing this.)  If anything, a command line option
is better than importing SHELL, I think.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* 9menu
@ 1994-11-29 15:32 Arnold Robbins
  0 siblings, 0 replies; 8+ messages in thread
From: Arnold Robbins @ 1994-11-29 15:32 UTC (permalink / raw)
  To: sam-fans

A comment about starting 9term from 9menu; that'll work, for now. 9wm's
"New" menu item will start 9term by default, and then xterm if it's not
there, with a command line option to change what terminal program should
be run (e.g., you might like xvt (== xterm on a diet)). The point being,
9wm will do that in the long run.

I don't intend to fix it to change window labels or icon labels or anything
like that for feedback while a program is spawning. Write a shell program
to do it and have 9menu call that shell program... 9menu has enough bells
and whistles as it is. :-)

I'm told that 9wm should be out REALLY RSN...

Arnold


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 9menu
@ 1994-11-29 15:10 Arnold Robbins
  1994-11-29 16:10 ` 9menu Scott Schwartz
  0 siblings, 1 reply; 8+ messages in thread
From: Arnold Robbins @ 1994-11-29 15:10 UTC (permalink / raw)
  To: Scott Schwartz, Sam Fans; +Cc: arnold

I sent the announcement to sam-fans since that seems to be where most
of the discussion of 9term takes place. I figured 9fans was more for
discussion of the real thing, not faking it under Unix.

As to this:

> To: Sam Fans <sam-fans@hawkwind.utcs.toronto.edu>
> Subject: 9menu
> Date: 	Mon, 28 Nov 1994 22:08:29 -0500
> From: Scott Schwartz <schwartz@galapagos.cse.psu.edu>
> 
> As long as we are being 9fans, how about this:
> 
> --- 1.1	1994/11/29 03:02:07
> +++ 9menu.c	1994/11/29 03:02:53
> @@ -228,7 +228,7 @@
>  		return;
>  
>  	close(ConnectionNumber(dpy));
> -	execl("/bin/sh", "sh", "-c", com, NULL);
> +	execl("/bin/rc", "rc", "-c", com, NULL);
>  	_exit(1);
>  }

That's not unreasonable, what I should probably do is fix 9menu to
just use ${SHELL:-/bin/sh}. If I find some spare time I'll probably
do that.  If someone wishes to beat me to it and mail me a patch,
that's fine too.

Arnold


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1994-11-30 15:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-11-29  3:08 9menu Scott Schwartz
1994-11-29 15:10 9menu Arnold Robbins
1994-11-29 16:10 ` 9menu Scott Schwartz
1994-11-29 15:32 9menu Arnold Robbins
1994-11-29 17:09 9menu Arnold Robbins
1994-11-29 17:10 9menu rob
1994-11-30  1:22 ` 9menu Scott Schwartz
1994-11-30 15:59 9menu Arnold Robbins

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).