Re: [dwm] executing programs won't work with tcsh

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Fri, 21 Dec 2007 12:48:36 +0100

On Thu, Dec 20, 2007 at 07:27:19AM -0800, mikshaw wrote:
>
> --- Richard Pöttler <richard.poettler_AT_gmail.com>
> wrote:
>
> > hi,
> >
> > I am using tcsh and got some problems, when i want
> > to start a program
> > with M+p. The problem is, that tcsh assigns
> > variables with "set <name>
> > <value>" and not like the sh shells with
> > "<name>=<value>". I patched
> > the config.def.h (patch is attached) to directly
> > exec the output of
> > dmenu and mailed it to Anselm, but he pointed out,
> > that there will be
> > problems if the user presses Esc, which causes exec
> > to execute "".
> >
> > Does anyone of you know a solutions for this
> > problem?
> >
> > bye
> > richi
> >
>
> My preference is to not rely on config.h for dmenu
> behavior. One solution is to write a script and put
> that script in config.h instead. You can make changes
> without rebuilding dwm every time.
> I think the main thing is to do a check of the dmenu
> output, and only execute if it's a non empty string.
>
> So you're using tcsh for a login shell? How's that
> treating you?

Ok, I agree. There will be a dmenu_run script beginning with
dmenu-3.5 which is executed from config.h of dwm-4.8.

Kind regards,

-- 
 Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361
Received on Fri Dec 21 2007 - 12:48:36 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:13:17 UTC