ratpoison-devel
[Top][All Lists]
Advanced

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

Re: [RP] exec exec


From: twb
Subject: Re: [RP] exec exec
Date: Wed Apr 21 16:55:22 2004

Quoth Joshua Neuheisel <address@hidden> on or about Wed, 21 Apr 2004 15:42:23 
-0400:
> From: "twb"
> Subject: [RP] exec exec
> 
> > When exec'ing from RP, if your add 'exec' after the last semicolon you
> > can avoid having a shell process lying around for every emacs and
> > xterm you start.
> >
> > E.g. bind C-c exec exec xterm, bind C-d exec cd /alt/wget; exec dillo
> >
> > There is a noticeable overhead in startup times.
> 
> You might be able to solve this problem at a systemic level by using bash.
> When compiled with the ONESHOT option (which is the default), bash won't

Anybody know if that's turned on in Debian?  I don't think so.

> fork when executed with one "-c" option.  It'll just do an exec, so you
> don't have rouge shell processes running all over the place.  Also, my
> /bin/sh is just a symbolic link to /bin/bash.  This saves a lot of time, not
> just in RP, but everywhere shell scripts are executed.

I am actually using dash as my /bin/sh.  It is barebones POSIX sh
(80kb binary vs. bash's 630kb).

-trent
-- 
"Are you police officers?"
"No ma'am, we're sysadmins."



reply via email to

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