From deefef53041e15eb3e0c42dc9374179735f760fd Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Date: Mon, 24 Aug 2015 13:56:04 +0200 Subject: Erase the contents of the g file in a portable way --- g.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g.sh') diff --git a/g.sh b/g.sh index 3b9846d..b3cc3cc 100644 --- a/g.sh +++ b/g.sh @@ -53,7 +53,7 @@ __g_get_shortcuts() { # Save the computed shortcuts into the __g_file. __g_save_shortcuts() { # Erase the contents of the __g_file. - >$__g_file + :>$__g_file # Finally write the hash into the __g_file. for i in "${!__g_shortcuts[@]}"; do -- cgit v1.2.3