Re: [hackers] [dmenu][RFC][PATCH] History functionality

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Wed, 9 Dec 2015 11:12:42 +0100

On Wed, Dec 09, 2015 at 10:31:09AM +0100, Silvan Jegen wrote:
> I realized that I am not dealing with the case that the history file
> does not exist already. I added a simple check for that (although I
> was considering just putting in a comment saying that it has to).
>

> +if [ ! -e $historyfile ]; then
> + touch $historyfile
> +fi

Why the if?, why not directly touch the file?

Regards,
Received on Wed Dec 09 2015 - 11:12:42 CET

This archive was generated by hypermail 2.3.0 : Wed Dec 09 2015 - 11:24:12 CET