ratpoison-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RP] multiple commands


From: Ben Leslie
Subject: Re: [RP] multiple commands
Date: Thu Nov 29 20:49:04 2001
User-agent: Mutt/1.3.23i

On Tue, 27 Nov 2001, Shawn Betts wrote:

> Ben Leslie <address@hidden> writes:
> 
> > On Tue, 20 Nov 2001, Mike Meyer wrote:
> > 
> > > Ben Leslie <address@hidden> types:
> > > > bind e exec ratpoison -c focusleft; ratpoison -c "select emacs"
> > > > in my .ratpoisonrc .
> > > >
> > > > This works and all but is kinda silly launching two processes just so
> > > > I can issue two commands.
> > > > 
> > > > So my question is can I do something like:
> > > > bind e focusleft; select emacs
> > > 
> > > Try this:
> > > 
> > > bind e exec ratpoison -c focusleft -c "select emacs"
> > > 
> > > That works in the version in cvs; I'm not sure about the last release.
> > 
> > Yup I'm on CVS, that works fine. Still a little bit icky having to start
> > a ratpoison process from inside ratpoins, but I can live with that for
> > now :>
> 
> Its recursion on a process level. Most people agree that recursion is
> "elegant" and "simple". So what's wrong with this kind of recursion?
> It doesn't look like this is an issue anymore (3 out of 4 men dressed
> in lab coats with stethoscopes around their necks agree). Would it be
> somehow better if we had a seperate program that does exactly what
> ratpoison -c does except that its called, say, rp-c? Seems like
> there's just no need to complicate things.


Recursion is elegant and simple. Overhead of starting a process is potentially,
not. But as someone else pointed out, process creation should be cheap
enough on any reasonable operating system.

Benno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]