Re: [dwm] dmenu directory test

From: Peter Hartlich <sgkkr_AT_hartlich.com>
Date: Sat, 14 Jun 2008 22:27:13 +0200

> Doesn't it make more sense to do a test, then just redirect error
> output?

That creates a race condition (the directory could be deleted
between test and cd). Note that the rest of the code is only run
if cd was successful.

Also, test may be an external program.

Regards,
Peter
Received on Sat Jun 14 2008 - 22:27:37 UTC

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