diff options
author | Adam Spiers <stow@adamspiers.org> | 2015-11-11 11:22:05 +0000 |
---|---|---|
committer | Adam Spiers <stow@adamspiers.org> | 2015-11-11 11:28:47 +0000 |
commit | d0f3e5458fd9f93bff68cb2047ad531c7e0e9375 (patch) | |
tree | 55614c82ecf5fc94e58cef21de83fd93048cff95 /THANKS | |
parent | b5dbc3b7b4f71a38c927a83cfe598e05190929bd (diff) | |
download | stow-d0f3e5458fd9f93bff68cb2047ad531c7e0e9375.tar.gz |
Correctly handle empty STOW_DIR (#5, #6)
In shell, a variable is often considered unset even if it is
set to the empty string. In other words,
STOW_DIR= stow [args]
is an idiomatic alternative to writing:
unset STOW_DIR
stow [args]
and it also has the advantage of temporarily "unsetting" STOW_DIR
for a single command.
Therefore we should treat STOW_DIR being set to the empty string
as equivalent to it not being set at all.
Thanks to Cuong Manh Le for highlighting this issue!
Fixes #6 - https://github.com/aspiers/stow/issues/6
Closes #5 - https://github.com/aspiers/stow/pull/5
Diffstat (limited to 'THANKS')
-rw-r--r-- | THANKS | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -23,3 +23,4 @@ Christopher Hoobin <christopher.hoobin.edu.au> Adam Spiers <stow@adamspiers.org> Stefano Lattarini Adam Sampson +Cuong Manh Le |