diff options
| author | Miquel Sabaté <msabate@suse.com> | 2015-08-24 13:56:04 +0200 |
|---|---|---|
| committer | Miquel Sabaté <msabate@suse.com> | 2015-08-24 13:56:04 +0200 |
| commit | deefef53041e15eb3e0c42dc9374179735f760fd (patch) | |
| tree | d58ce5ac8658a6f658a6f1d7b480739950a4e4de | |
| parent | 974a3655ee95fd22f98262603dca4faf8ed0711f (diff) | |
| download | g-deefef53041e15eb3e0c42dc9374179735f760fd.tar.gz g-deefef53041e15eb3e0c42dc9374179735f760fd.zip | |
Erase the contents of the g file in a portable way
| -rw-r--r-- | g.sh | 2 | ||||
| -rw-r--r-- | t/expected.txt | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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 diff --git a/t/expected.txt b/t/expected.txt index d78dcb8..5a56bbe 100644 --- a/t/expected.txt +++ b/t/expected.txt @@ -1,5 +1,5 @@ -g version 0.3.8 -g version 0.3.8 +g version 0.3.9 +g version 0.3.9 usage: g [-h | --help] [-v | --version] <command> [<args>] The g commands are: |
