Re: [dwm] dmenu directory test

From: Premysl Hruby <dfenze_AT_gmail.com>
Date: Sat, 14 Jun 2008 22:34:18 +0200

On (14/06/08 16:20), James Turner wrote:
> To: dynamic window manager <dwm_AT_suckless.org>
> From: James Turner <james_AT_bsdgroup.org>
> Subject: Re: [dwm] dmenu directory test
>
> On Sat, Jun 14, 2008 at 10:16:03PM +0200, Peter Hartlich wrote:
> > Hi,
> >
> > > [...] I was wondering if it would make sense to add a test in dmenu_path
> > > to make sure the directory actually exists before trying to cd into it?
> >
> > If you're bothered about cd printing an error message, you could just add
> > 2>/dev/null to the cd line.
> >
> > Regards,
> > Peter
>
> Doesn't it make more sense to do a test, then just redirect error
> output?

That cd itself is sort of test.

-Ph

-- 
Premysl "Anydot" Hruby, http://www.redrum.cz/
Received on Sat Jun 14 2008 - 22:34:16 UTC

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