Re: [dwm] dmenu directory test

From: James Turner <james_AT_bsdgroup.org>
Date: Sat, 14 Jun 2008 16:20:25 -0400

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?

-- 
James Turner
BSD Group Consulting
http://www.bsdgroup.org
Received on Sat Jun 14 2008 - 22:20:58 UTC

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